Ejemplo n.º 1
0
        public TriggerResponse QueueTriggerRequest(TriggerRequest triggerRequest)
        {
            try
            {
                _rabbitMqClient.PublishMessage(triggerRequest);

                return(new TriggerResponse()
                {
                    Status = QueueTriggerRequestStatus.Queued
                });
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(new TriggerResponse()
                {
                    Status = QueueTriggerRequestStatus.FailedToQueue
                });
            }
        }
Ejemplo n.º 2
0
 public bool PublishMessage(object message, string routingKey, string exchange, IBasicProperties basicProperties = null)
 {
     return(RabbitMQClient.PublishMessage(message, routingKey, exchange, basicProperties));
 }