Exemplo n.º 1
0
 public void Handle(EventoExcluidoEvent message)
 {
     // Enviar um email
     // E/ou fazer um log
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine("Evento Excluído com Sucesso");
 }
Exemplo n.º 2
0
 public Task Handle(EventoExcluidoEvent message, CancellationToken cancellationToken)
 {
     // Enviar um email
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine("Evento Excluído com Sucesso");
     return(Task.CompletedTask);
 }
Exemplo n.º 3
0
 public void Handle(EventoExcluidoEvent message)
 {
     // Enviar um e-mail por exemplo
     // Enviar um log por exemplo
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine("Evento Excluido com sucesso");
 }
Exemplo n.º 4
0
 public void Handle(EventoExcluidoEvent message)
 {
     throw new NotImplementedException();
 }
 public void Handle(EventoExcluidoEvent message)
 {
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine("Evento Excluido com sucesso");
 }
Exemplo n.º 6
0
 public void Handle(EventoExcluidoEvent message)
 {
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine("Evento excluído com sucesso.");
     //Enviar e-mail ou log da informação ou notificação
 }
Exemplo n.º 7
0
 public void Handle(EventoExcluidoEvent message)
 {
     //enviar e-mail
 }
        public Task Handle(EventoExcluidoEvent notification, CancellationToken cancellationToken)
        {
            // TODO: Disparar alguma ação

            return(Task.CompletedTask);
        }
Exemplo n.º 9
0
 public Task Handle(EventoExcluidoEvent notification, CancellationToken cancellationToken)
 {
     return(Task.FromResult(Unit.Value));
 }
Exemplo n.º 10
0
 public void Handle(EventoExcluidoEvent message)
 {
     //Enviar um e-mail
     //Fazer um log
 }