Example #1
0
 protected override async Task OnMessageHandler(
     ServiceBusReceivedMessage message,
     CancellationToken cancellationToken)
 {
     var args = new ProcessSessionMessageEventArgs(
         message,
         _receiver,
         this,
         cancellationToken);
     await _sessionProcessor.OnProcessSessionMessageAsync(args).ConfigureAwait(false);
 }
Example #2
0
 protected override async Task OnMessageHandler(EventArgs args) =>
 await _sessionProcessor.OnProcessSessionMessageAsync((ProcessSessionMessageEventArgs)args).ConfigureAwait(false);