public void Publisher(PedidoRemovidoEvent message)
 {
     using (var bus = RabbitHutch.CreateBus("host=localhost;virtualHost=localhost"))
     {
         bus.PubSub.Publish(message);
     }
 }
Exemple #2
0
 public async Task Handle(PedidoRemovidoEvent message)
 {
     try
     {
         await _repository.RemoveAsync(message.IdBanco);
     }
     catch
     {
     }
 }