public Task Handle(PersonRemovedEvent notification, CancellationToken cancellationToken)
 {
     //Envia alguma notificação de e-mail, por exemplo
     return(Task.CompletedTask);
 }
 public Task Handle(PersonRemovedEvent @event, CancellationToken cancellationToken)
 {
     // Send some notification by deleted post
     return(_hubContext.Clients.All.SendAsync("personRemoved", @event, cancellationToken));
 }
示例#3
0
 public Task Handle(PersonRemovedEvent notification, CancellationToken cancellationToken)
 {
     return(Task.CompletedTask);
 }