コード例 #1
0
 public Task Consume(ReceiveContext <TCommand> messageContext)
 {
     Guard.NotNull(messageContext, nameof(messageContext));
     return(this.channel.Send(messageContext.CreateSendContext()));
 }
コード例 #2
0
 public Task Consume(ReceiveContext <TEvent> messageContext)
 {
     Guard.NotNull(messageContext, nameof(messageContext));
     return(this.channel.Publish(messageContext.CreateSendContext()));
 }
コード例 #3
0
 public Task <TResponse> Consume(ReceiveContext <TRequest> messageContext)
 {
     Guard.NotNull(messageContext, nameof(messageContext));
     return(this.channel.Request <TRequest, TResponse>(messageContext.CreateSendContext()));
 }