Пример #1
0
        public string Simple(string message = "Simple")
        {
            var producer = rabbitProducerFactory.Create("SimplePattern");

            producer.Publish(message);

            return("success");
        }
Пример #2
0
 /// <summary>
 /// 创建客户端生产者
 /// </summary>
 /// <param name="factory"></param>
 /// <returns></returns>
 public static IRabbitClientProducer Create(this IRabbitProducerFactory factory)
 {
     return(factory.Create(Options.DefaultName));
 }