Exemplo n.º 1
0
 public void Publish <T>(string queueName, Event <T> obj) where T : class
 {
     if (!_connection.IsConnected)
     {
         throw new InvalidOperationException("No RabbitMQ connections are available to perform this action");
     }
     _connection.Publish <T>(queueName, obj);
 }