public static void Main(string[] args) { var model = ShitHelper.Model; var consumer = new CommonMessageHandler(model); ShitHelper.Handler = new ServerHandler(); model.BasicConsume(StepNames.OrderAccepted, false, String.Empty, false, false, null, consumer); model.BasicConsume(StepNames.OrderForImplementation, false, String.Empty, false, false, null, consumer); model.BasicConsume(StepNames.OrderMerged, false, String.Empty, false, false, null, consumer); model.BasicConsume(StepNames.OrderSucces, false, String.Empty, false, false, null, consumer); CreateWebHostBuilder(args).Build().Run(); }
public MainWindow() { EmailRepository.Start(); InitializeComponent(); Process.MyStep = StepNames.OrderReceived; Database.start(); var model = ShitHelper.Model; var consumer = new CommonMessageHandler(model); ShitHelper.Handler = new FirstDecisionHandler(); UIMessageUpdater.UpdaterWithUi.UpdateUi = UpdateUi; AcceptHandler.UpdaterWithUi.UpdateUi = ChooseWorkers; model.BasicConsume(StepNames.OrderReceived, false, String.Empty, false, false, null, consumer); model.BasicConsume(StepNames.OrderAccepted, false, String.Empty, false, false, null, consumer); model.BasicConsume(StepNames.OrderDeclined, false, String.Empty, false, false, null, consumer); }