ExpiredMessagesPurger CreateExpiredMessagesPurger(LegacySqlConnectionFactory connectionFactory)
        {
            var purgeTaskDelay = settings.HasSetting(SettingsKeys.PurgeTaskDelayTimeSpanKey) ? settings.Get <TimeSpan?>(SettingsKeys.PurgeTaskDelayTimeSpanKey) : null;
            var purgeBatchSize = settings.HasSetting(SettingsKeys.PurgeBatchSizeKey) ? settings.Get <int?>(SettingsKeys.PurgeBatchSizeKey) : null;

            return(new ExpiredMessagesPurger(queue => connectionFactory.OpenNewConnection(queue.Name), purgeTaskDelay, purgeBatchSize));
        }
Beispiel #2
0
 public LegacyMessageDispatcher(LegacyQueueAddressTranslator addressTranslator, LegacySqlConnectionFactory connectionFactory)
 {
     this.addressTranslator = addressTranslator;
     this.connectionFactory = connectionFactory;
 }
 public LegacyQueueCreator(LegacySqlConnectionFactory connectionFactory, LegacyQueueAddressTranslator addressTranslator)
 {
     this.connectionFactory = connectionFactory;
     this.addressTranslator = addressTranslator;
 }
 public LegacyReceiveWithTransactionScope(TransactionOptions transactionOptions, LegacySqlConnectionFactory connectionFactory, FailureInfoStorage failureInfoStorage)
 {
     this.transactionOptions = transactionOptions;
     this.connectionFactory  = connectionFactory;
     this.failureInfoStorage = failureInfoStorage;
 }
Beispiel #5
0
 public LegacyQueuePeeker(LegacySqlConnectionFactory connectionFactory, QueuePeekerOptions settings)
 {
     this.connectionFactory = connectionFactory;
     this.settings          = settings;
 }
Beispiel #6
0
 public LegacyQueuePurger(LegacySqlConnectionFactory connectionFactory)
 {
     this.connectionFactory = connectionFactory;
 }