コード例 #1
0
        public Publisher(IPublisherBehavior publisher, params IBehavior <IPublisherMessageBatching>[] behaviors)
        {
            _behavior = AggregateBehavior <IPublisherMessageBatching> .Create(new PublisherBehaviorWrapper(publisher),
                                                                              behaviors);

            _observers = new HashSet <IObserver <IPublisherMessageBatching> >();
        }
コード例 #2
0
 public RabbitMqPublisherTests(ConnectionFixture connectionFixture)
 {
     _publisher =
         new RabbitMqPublisher(connectionFixture.GetConnectionFactory(out _connectionMock, out _channelMock));
 }
コード例 #3
0
 public PublisherBehaviorWrapper(IPublisherBehavior publisher)
 {
     _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher));
 }