public IExchangeConfiguration GetExchangeConfiguration(string exchangeIdentifier) { using (var db = _dbProvider.Connect(_connectionStringConfig.TransactionProcessing)) { var ident = DebugModeStringHandler.UnmakeDebugIdentifierValue(exchangeIdentifier); return(_dbProvider.Select <PocoExchangeConfiguration>(db, x => x.ExchangeIdentifier == ident).FirstOrDefault()); } }
public IListenerConfiguration GetListenerConfiguration(string queueIdentifier) { using (var db = _dbProvider.Connect(_connectionStringConfig.TransactionProcessing)) { var ident = DebugModeStringHandler.UnmakeDebugIdentifierValue(queueIdentifier); return(_dbProvider.Select <PocoListenerConfiguration>(db, x => x.SourceQueue == ident).FirstOrDefault()); } }
internal IListenerConfiguration GetListenerConfiguration(IQueueConfiguration queueToMonitor, IConfigurationProvider configurationProvider) { if (queueToMonitor == null) { return(null); } var result = configurationProvider.GetListenerConfiguration(DebugModeStringHandler.UnmakeDebugIdentifierValue(queueToMonitor.QueueIdentifier)); if (result == null) { return(null); } result.ReportQueue = GetListenerReportQueueName(); result.PollingInterval = queueToMonitor.PollingInterval; result.QueueReadInterval = queueToMonitor.QueueReadInterval; result.QueueReadMessageCountThreshold = queueToMonitor.QueueReadMessageCountThreshold; return(result); }