using System.Globalization;
using Hawkeye.VisionBuilder.Workflow;
using Hawkeye.VisionBuilder.Workflow.Operations;
using Ninject;
namespace Hawkeye.VisionBuilder
{
internal static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
ApplicationConfiguration.Initialize();
WinConsole.Initialize();
ThreadPool.SetMinThreads(64, 4);
Thread.CurrentThread.CurrentCulture=new CultureInfo("en-US");
Thread.CurrentThread.CurrentUICulture=new CultureInfo("en-US");
StandardKernel kernel = new StandardKernel();
WorkflowList workflow = new WorkflowList();
OperationDiscoveryService service = new OperationDiscoveryService(workflow);
workflow.Operations.Add(new GetImageOperation(workflow));
kernel.Bind().ToConstant(service);
kernel.Bind().ToConstant(workflow);
Application.Run(kernel.Get());
}
}
}