public MainService(IServiceProvider serviceProvider, RabbitMQSetting rabbitMQSetting, ILogger logger) { m_ServiceProvider = serviceProvider; m_RabbitMQSetting = rabbitMQSetting; m_Logger = logger; m_CancellationToken = new CancellationTokenSource(); }
private static bool IsStop(RabbitMQSetting setting, string queueName) { if (setting == null || setting.StopQueues == null || setting.StopQueues.Length == 0) { return(false); } if (setting.StopQueues.Contains(queueName)) { return(true); } else { return(false); } }
public static ConfigurationSetting SetRabbitMQSetting(this ConfigurationSetting configurationSetting, RabbitMQSetting rabbitMQSetting) { _setting = rabbitMQSetting; return(configurationSetting); }
public RabbitMessagePublisher() { _publishDic = new Dictionary <string, RabbitPublishMessageMetadata>(); _rabbitMQSetting = ObjectContainer.Resolve <Configuration>().Setting.GetRabbitMQSetting(); }