Esempio n. 1
0
        private WorkflowMessagingProcessor()
        {
            Log.Debug("Workflow Messaging: Started opening the endpoint....");
            _messageTransportHost = new TransportHost(new ConfigHelper(), GenericServiceBusServer.Instance);

            Task.Factory.StartNew(async() => await _messageTransportHost.Start(true)).Unwrap().Wait();

            Log.Debug("Workflow Messaging: Finished opening the endpoint.");
        }
        public bool Start(HostControl hostControl)
        {
            LogManager.Manager.AddListener(Log4NetStandardLogListener.Instance);

            Log.Info("Action Handler Service is starting.");
            _messageTransportHost = new TransportHost(new ConfigHelper(), WorkflowServiceBusServer.Instance);
            Task.Run(() => _messageTransportHost.Start(false, () => Stop(null)));
            Log.Info("Action Handler Service started.");

            return(true);
        }