Exemplo n.º 1
0
        public IActionResult Push(Stoc stoc)
        {
            RabbitMQPush rabbitMq = new RabbitMQPush(stoc);

            rabbitMq.Push();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public void Push(string id)
        {
            RabbitMQPush rabbitMq = new RabbitMQPush(new Stoc {
                Consumer = id, Pusher = "Account-service", Value = "test event"
            });

            rabbitMq.Push();
        }