Exemplo n.º 1
0
 public PublisherChannelContext(IModel channel,
                                QueueReferences queueReferences,
                                IPublisherChannelContextPool publisherChannelContextPool)
 {
     Channel         = channel ?? throw new ArgumentNullException(nameof(channel));
     QueueReferences = queueReferences ?? throw new ArgumentNullException(nameof(queueReferences));
     _publisherChannelContextPool = publisherChannelContextPool ?? throw new ArgumentNullException(nameof(publisherChannelContextPool));
 }
 public PublisherChannelFactory(IPublisherChannelContextPool publisherChannelContextPool, IQueueReferenceFactory queueReferenceFactory)
 {
     _publisherChannelContextPool = publisherChannelContextPool ?? throw new ArgumentNullException(nameof(publisherChannelContextPool));
     _queueReferenceFactory       = queueReferenceFactory ?? throw new ArgumentNullException(nameof(queueReferenceFactory));
 }