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