Exemplo n.º 1
0
 public DisptachingMessageStream(DefaultMessageDispatcher dispatcher, IEnumerable <IMessage> messages)
 {
     _dispatcher           = dispatcher;
     _taskCompletionSource = new TaskCompletionSource <AsyncTaskResult>();
     _messageQueue         = new ConcurrentQueue <IMessage>();
     messages.ForEach(message => _messageQueue.Enqueue(message));
 }
Exemplo n.º 2
0
 public QueueMessageDisptaching(DefaultMessageDispatcher dispatcher, RootDisptaching rootDispatching, IEnumerable <IMessage> messages)
 {
     _dispatcher   = dispatcher;
     _messageQueue = new ConcurrentQueue <IMessage>();
     messages.ForEach(message => _messageQueue.Enqueue(message));
     _rootDispatching = rootDispatching;
     _rootDispatching.AddChildDispatching(this);
 }
Exemplo n.º 3
0
 public DisptachingMessageStream(DefaultMessageDispatcher dispatcher, IEnumerable<IMessage> messages)
 {
     _dispatcher = dispatcher;
     _taskCompletionSource = new TaskCompletionSource<AsyncTaskResult>();
     _messageQueue = new ConcurrentQueue<IMessage>();
     messages.ForEach(message => _messageQueue.Enqueue(message));
 }