Example #1
0
 public Task Handle(PessoaExcluidaNotification notification, CancellationToken cancellationToken)
 {
     return(Task.Run(() =>
     {
         Console.WriteLine($"EXCLUSAO: '{notification.Id} - {notification.IsEfetivado}'");
     }));
 }
 public Task Handle(PessoaExcluidaNotification notification, CancellationToken cancellationToken)
 {
     return(Task.Run(
                () => Console.WriteLine($"Pessoa deletada com sucesso: {notification.Id}")));
 }