예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public AzureServiceBusTransport(ConcurrentHandlerLimitSetting concurrentHandlerLimit,
                                 IBrokeredMessageFactory brokeredMessageFactory,
                                 IGlobalHandlerThrottle globalHandlerThrottle,
                                 ILogger logger,
                                 IQueueManager queueManager,
                                 IRetry retry,
                                 IDependencyResolver dependencyResolver,
                                 ISqlFilterExpressionGenerator sqlFilterExpressionGenerator)
 {
     _queueManager                 = queueManager;
     _retry                        = retry;
     _dependencyResolver           = dependencyResolver;
     _sqlFilterExpressionGenerator = sqlFilterExpressionGenerator;
     _brokeredMessageFactory       = brokeredMessageFactory;
     _globalHandlerThrottle        = globalHandlerThrottle;
     _concurrentHandlerLimit       = concurrentHandlerLimit;
     _logger                       = logger;
 }
예제 #4
0
 public AzureServiceBusTransport(ConcurrentHandlerLimitSetting concurrentHandlerLimit,
                                 IBrokeredMessageFactory brokeredMessageFactory,
                                 IGlobalHandlerThrottle globalHandlerThrottle,
                                 ILogger logger,
                                 IQueueManager queueManager,
                                 Func<NamespaceManager> namespaceManager,
                                 IRetry retry,
                                 IDependencyResolver dependencyResolver,
                                 ISqlFilterExpressionGenerator sqlFilterExpressionGenerator)
 {
     _queueManager = queueManager;
     _namespaceManager = namespaceManager;
     _retry = retry;
     _dependencyResolver = dependencyResolver;
     _sqlFilterExpressionGenerator = sqlFilterExpressionGenerator;
     _brokeredMessageFactory = brokeredMessageFactory;
     _globalHandlerThrottle = globalHandlerThrottle;
     _concurrentHandlerLimit = concurrentHandlerLimit;
     _logger = logger;
 }