Exemplo n.º 1
0
 /// <summary>
 /// 自定义配置
 /// </summary>
 /// <param name="configuration"></param>
 public EasyNetQSubscriber(ConnectionConfiguration configuration)
 {
     bus = EasyNetQBusBuilder.CreateMessageBus(configuration);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 默认配置
 /// </summary>
 public EasyNetQSubscriber()
 {
     bus = EasyNetQBusBuilder.CreateMessageBus();
 }
Exemplo n.º 3
0
 /// <summary>
 /// 自定义连接
 /// </summary>
 /// <param name="connectionStr"></param>
 public EasyNetQSubscriber(string connectionStr)
 {
     bus = EasyNetQBusBuilder.CreateMessageBus(connectionStr);
 }
Exemplo n.º 4
0
 /// <summary>
 /// 默认配置
 /// </summary>
 public EasyNetQPublisher()
 {
     bus = EasyNetQBusBuilder.CreateMessageBus();
 }