コード例 #1
0
 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());
     }
 }
コード例 #2
0
 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());
     }
 }
コード例 #3
0
        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);
        }