Ejemplo n.º 1
0
        public void Start()
        {
            if (started.CompareAndSet(false, true))
            {
                dispatcher = new SessionDispatcher();

                foreach (NmsMessageConsumer consumer in consumers.Values.ToArray())
                {
                    consumer.Start();
                }
            }
        }
Ejemplo n.º 2
0
        public void Stop()
        {
            if (started.CompareAndSet(true, false))
            {
                dispatcher.Stop();
                dispatcher = null;

                foreach (NmsMessageConsumer consumer in consumers.Values)
                {
                    consumer.Stop();
                }
            }
        }
Ejemplo n.º 3
0
 public ExcludeCheckIsOnDeliveryExecutionFlowBlock(SessionDispatcher sessionDispatcher)
 {
     this.sessionDispatcher = sessionDispatcher;
     this.previousValue     = sessionDispatcher.isOnDispatcherFlow.Value;
     sessionDispatcher.isOnDispatcherFlow.Value = false;
 }