Exemplo n.º 1
0
 public DemoMqService(MqConfig config) : base(config)
 {
     Queues.Add(new QueueInfo()
     {
         ExchangeType = ExchangeType.Direct,
         Name         = "login-message",
         RouterKey    = "pk",
         OnReceived   = OnReceived
     });
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="config"></param>
 /// <param name="vhost"></param>
 public MqConnection(MqConfig config, string vhost)
 {
     _config = config;
     _vhost  = vhost;
 }
Exemplo n.º 3
0
 internal MqServiceBase(MqConfig config)
 {
     Config = config;
 }