コード例 #1
0
 public async Task StartAsync(EndpointConfiguration.ReadOnly configuration, Func <TransportMessage, Task> onMessage)
 {
     this.configuration  = configuration;
     this.onMessageAsync = onMessage;
     this.receiver       = await this.receiveMessages.StartAsync(this.configuration, this.OnMessageAsync)
                           .ConfigureAwait(false);
 }
コード例 #2
0
 public async Task StartAsync(EndpointConfiguration.ReadOnly configuration, Func<TransportMessage, Task> onMessage)
 {
     this.configuration = configuration;
     this.onMessageAsync = onMessage;
     this.receiver = await this.receiveMessages.StartAsync(this.configuration, this.OnMessageAsync)
         .ConfigureAwait(false);
 }