Exemplo n.º 1
0
 public Task PostHandleAsync(IEvent @event, CancellationToken cancellationToken = default)
 {
     _log.Verbose("Handling {eventType} succeeded", @event.DisplayName());
     return(Task.CompletedTask);
 }
Exemplo n.º 2
0
 public Task HandleFailureAsync(IEvent @event, Exception exception, CancellationToken cancellationToken = default)
 {
     _log.Error("Handling {eventType} failed: {error}", @event.DisplayName(), exception.Message);
     return(Task.CompletedTask);
 }
Exemplo n.º 3
0
 public Task PreHandleAsync(IEvent @event, CancellationToken cancellationToken = default)
 {
     _log.ForContext("eventData", @event, true).Debug("Handling {eventType}", @event.DisplayName());
     return(Task.CompletedTask);
 }