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); }
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); }