public DisptachingMessageStream(DefaultMessageDispatcher dispatcher, IEnumerable <IMessage> messages) { _dispatcher = dispatcher; _taskCompletionSource = new TaskCompletionSource <AsyncTaskResult>(); _messageQueue = new ConcurrentQueue <IMessage>(); messages.ForEach(message => _messageQueue.Enqueue(message)); }
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); }
public DisptachingMessageStream(DefaultMessageDispatcher dispatcher, IEnumerable<IMessage> messages) { _dispatcher = dispatcher; _taskCompletionSource = new TaskCompletionSource<AsyncTaskResult>(); _messageQueue = new ConcurrentQueue<IMessage>(); messages.ForEach(message => _messageQueue.Enqueue(message)); }