protected override void OnStart(string[] args) { var servicesSetup = new ServicesSetup(); servicesSetup.Setup(); var serviceProvider = servicesSetup.GetServiceProvider(); _queueProcessor = serviceProvider.GetService <QueueProcessor>(); _queueProcessor.Start(); }
internal void Run() { AllocConsole(); var servicesSetup = new ServicesSetup(); servicesSetup.Setup(); var serviceProvider = servicesSetup.GetServiceProvider(); var queueProcessor = serviceProvider.GetService <QueueProcessor>(); queueProcessor.Start(); Console.WriteLine("Started"); Console.ReadLine(); queueProcessor.Stop(); }