Exemplo n.º 1
0
        public static void PublishMessage(string tag, T list)
        {
            ProducerMessage <T> producer = new ProducerMessage <T>();

            producer.Initialize("ProductionReward", "PID_ProductionReward");
            producer.InitializeNormalProducer();
            producer.SendNormalMessage(list, tag);

            producer.SendDispose();
        }
Exemplo n.º 2
0
 /// <summary>
 /// 发送消息
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="key"></param>
 /// <param name="value"></param>
 public void Send <T>(string key, T value) where T : class
 {
     ProducerMessage <T> .ProducerMessageAction(key, value);
 }