public Task HandleAsync(
     IEventHandlingContext <UserWasLoggedIn> context,
     CancellationToken cancellationToken = default)
 {
     Console.Beep();
     return(Task.CompletedTask);
 }
Example #2
0
 public async Task HandleAsync(
     IEventHandlingContext <UserWasLoggedIn> context,
     CancellationToken cancellationToken = default)
 {
     await Console.Out.WriteLineAsync(
         $"----------> User '{context.Event.Name}' was logged in at {context.Event.LoggedInAt}");
 }
Example #3
0
 public Task HandleAsync(IEventHandlingContext <SomeEvent> context, CancellationToken cancellationToken = default)
 {
     return(Task.CompletedTask);
 }