示例#1
0
 public MediatorBus(IOutputMessageChannel channel, IMessageContextFactory messageContextFactory)
 {
     Guard.NotNull(messageContextFactory, nameof(messageContextFactory));
     Guard.NotNull(channel, nameof(channel));
     this.channel = channel;
     this.messageContextFactory = messageContextFactory;
 }
示例#2
0
 public ReceiveContext(TMessage message, MessageMetadata messageMetadata, IMessageContextFactory factory, IOutputMessageChannel channel)
     : base(message, messageMetadata)
 {
     Guard.NotNull(channel, nameof(channel));
     Guard.NotNull(factory, nameof(factory));
     this.factory = factory;
     this.channel = channel;
 }
 public RedirectRequestConsumer(IOutputMessageChannel channel)
 {
     Guard.NotNull(channel, nameof(channel));
     this.channel = channel;
 }