public AzureQueueManager(Func <ManagementClient> managementClient,
                                 IConnectionManager connectionManager,
                                 AutoDeleteOnIdleSetting autoDeleteOnIdle,
                                 DefaultMessageTimeToLiveSetting defaultMessageTimeToLive,
                                 DefaultTimeoutSetting defaultTimeout,
                                 EnableDeadLetteringOnMessageExpirationSetting enableDeadLetteringOnMessageExpiration,
                                 GlobalPrefixSetting globalPrefix,
                                 MaxDeliveryAttemptSetting maxDeliveryAttempts,
                                 ILogger logger,
                                 IPathFactory pathFactory,
                                 IRetry retry,
                                 ISqlFilterExpressionGenerator sqlFilterExpressionGenerator,
                                 ITypeProvider typeProvider)
        {
            _managementClient    = managementClient;
            _connectionManager   = connectionManager;
            _maxDeliveryAttempts = maxDeliveryAttempts;
            _logger                   = logger;
            _retry                    = retry;
            _typeProvider             = typeProvider;
            _defaultMessageTimeToLive = defaultMessageTimeToLive;
            _autoDeleteOnIdle         = autoDeleteOnIdle;
            _defaultTimeout           = defaultTimeout;
            _enableDeadLetteringOnMessageExpiration = enableDeadLetteringOnMessageExpiration;
            _globalPrefix = globalPrefix;
            _sqlFilterExpressionGenerator = sqlFilterExpressionGenerator;
            _pathFactory = pathFactory;

            _knownTopics        = new ThreadSafeLazy <ConcurrentSet <string> >(FetchExistingTopics);
            _knownSubscriptions = new ThreadSafeLazy <ConcurrentSet <string> >(FetchExistingSubscriptions);
            _knownQueues        = new ThreadSafeLazy <ConcurrentSet <string> >(FetchExistingQueues);
        }
        public AzureQueueManager(Func<NamespaceManager> namespaceManager,
                                 Func<MessagingFactory> messagingFactory,
                                 AutoDeleteOnIdleSetting autoDeleteOnIdle,
                                 DefaultMessageTimeToLiveSetting defaultMessageTimeToLive,
                                 DefaultTimeoutSetting defaultTimeout,
                                 EnableDeadLetteringOnMessageExpirationSetting enableDeadLetteringOnMessageExpiration,
                                 GlobalPrefixSetting globalPrefix,
                                 MaxDeliveryAttemptSetting maxDeliveryAttempts,
                                 IPathFactory pathFactory,
                                 IRetry retry,
                                 ISqlFilterExpressionGenerator sqlFilterExpressionGenerator,
                                 ITypeProvider typeProvider)
        {
            _namespaceManager = namespaceManager;
            _messagingFactory = messagingFactory;
            _maxDeliveryAttempts = maxDeliveryAttempts;
            _retry = retry;
            _typeProvider = typeProvider;
            _defaultMessageTimeToLive = defaultMessageTimeToLive;
            _autoDeleteOnIdle = autoDeleteOnIdle;
            _defaultTimeout = defaultTimeout;
            _enableDeadLetteringOnMessageExpiration = enableDeadLetteringOnMessageExpiration;
            _globalPrefix = globalPrefix;
            _sqlFilterExpressionGenerator = sqlFilterExpressionGenerator;
            _pathFactory = pathFactory;

            _knownTopics = new ThreadSafeLazy<ConcurrentSet<string>>(FetchExistingTopics);
            _knownSubscriptions = new ThreadSafeLazy<ConcurrentSet<string>>(FetchExistingSubscriptions);
            _knownQueues = new ThreadSafeLazy<ConcurrentSet<string>>(FetchExistingQueues);
        }
Exemple #3
0
        public AzureQueueManager(Func <NamespaceManager> namespaceManager,
                                 Func <MessagingFactory> messagingFactory,
                                 MaxDeliveryAttemptSetting maxDeliveryAttempts,
                                 ILogger logger,
                                 IRouter router,
                                 DefaultMessageLockDurationSetting defaultMessageLockDuration,
                                 ITypeProvider typeProvider,
                                 DefaultMessageTimeToLiveSetting defaultMessageTimeToLive,
                                 AutoDeleteOnIdleSetting autoDeleteOnIdle,
                                 EnableDeadLetteringOnMessageExpirationSetting enableDeadLetteringOnMessageExpiration)
        {
            _namespaceManager    = namespaceManager;
            _messagingFactory    = messagingFactory;
            _maxDeliveryAttempts = maxDeliveryAttempts;
            _logger = logger;
            _router = router;
            _defaultMessageLockDuration = defaultMessageLockDuration;
            _typeProvider             = typeProvider;
            _defaultMessageTimeToLive = defaultMessageTimeToLive;
            _autoDeleteOnIdle         = autoDeleteOnIdle;
            _enableDeadLetteringOnMessageExpiration = enableDeadLetteringOnMessageExpiration;

            _knownTopics        = new ThreadSafeLazy <ConcurrentBag <string> >(FetchExistingTopics);
            _knownSubscriptions = new ThreadSafeLazy <ConcurrentBag <string> >(FetchExistingSubscriptions);
            _knownQueues        = new ThreadSafeLazy <ConcurrentBag <string> >(FetchExistingQueues);
        }
Exemple #4
0
 public MessagePump(EnableDeadLetteringOnMessageExpirationSetting enableDeadLetteringOnMessageExpiration,
                    MaxDeliveryAttemptSetting maxDeliveryAttempts,
                    IClock clock,
                    IDeadLetterOffice deadLetterOffice,
                    IDelayedDeliveryService delayedDeliveryService,
                    IDeliveryRetryStrategy deliveryRetryStrategy,
                    IDispatchContextManager dispatchContextManager,
                    ILogger logger,
                    IMessageDispatcher messageDispatcher,
                    INimbusMessageReceiver receiver)
 {
     _enableDeadLetteringOnMessageExpiration = enableDeadLetteringOnMessageExpiration;
     _maxDeliveryAttempts = maxDeliveryAttempts;
     _clock = clock;
     _dispatchContextManager = dispatchContextManager;
     _logger = logger;
     _messageDispatcher = messageDispatcher;
     _receiver = receiver;
     _deadLetterOffice = deadLetterOffice;
     _delayedDeliveryService = delayedDeliveryService;
     _deliveryRetryStrategy = deliveryRetryStrategy;
 }
Exemple #5
0
 public MessagePump(EnableDeadLetteringOnMessageExpirationSetting enableDeadLetteringOnMessageExpiration,
                    MaxDeliveryAttemptSetting maxDeliveryAttempts,
                    IClock clock,
                    IDeadLetterOffice deadLetterOffice,
                    IDelayedDeliveryService delayedDeliveryService,
                    IDeliveryRetryStrategy deliveryRetryStrategy,
                    IDispatchContextManager dispatchContextManager,
                    ILogger logger,
                    IMessageDispatcher messageDispatcher,
                    INimbusMessageReceiver receiver)
 {
     _enableDeadLetteringOnMessageExpiration = enableDeadLetteringOnMessageExpiration;
     _maxDeliveryAttempts = maxDeliveryAttempts;
     _clock = clock;
     _dispatchContextManager = dispatchContextManager;
     _logger                 = logger;
     _messageDispatcher      = messageDispatcher;
     _receiver               = receiver;
     _deadLetterOffice       = deadLetterOffice;
     _delayedDeliveryService = delayedDeliveryService;
     _deliveryRetryStrategy  = deliveryRetryStrategy;
 }