예제 #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);
        }
 public ConnectionMultiplexerFactory(ApplicationNameSetting applicationName,
                                     InstanceNameSetting instanceName,
                                     RedisConnectionString connectionString,
                                     DefaultTimeoutSetting timeout,
                                     ILogger logger)
 {
     _applicationName  = applicationName;
     _instanceName     = instanceName;
     _connectionString = connectionString;
     _timeout          = timeout;
     _logger           = logger;
 }
 public ConnectionMultiplexerFactory(ApplicationNameSetting applicationName,
                                     InstanceNameSetting instanceName,
                                     RedisConnectionString connectionString,
                                     DefaultTimeoutSetting timeout,
                                     ILogger logger)
 {
     _applicationName = applicationName;
     _instanceName = instanceName;
     _connectionString = connectionString;
     _timeout = timeout;
     _logger = logger;
 }
예제 #5
0
 internal BusRequestSender(DefaultTimeoutSetting responseTimeout,
                           IClock clock,
                           IDependencyResolver dependencyResolver,
                           IKnownMessageTypeVerifier knownMessageTypeVerifier,
                           ILogger logger,
                           INimbusMessageFactory nimbusMessageFactory,
                           INimbusTransport transport,
                           IOutboundInterceptorFactory outboundInterceptorFactory,
                           IRouter router,
                           RequestResponseCorrelator requestResponseCorrelator)
 {
     _transport                  = transport;
     _router                     = router;
     _nimbusMessageFactory       = nimbusMessageFactory;
     _requestResponseCorrelator  = requestResponseCorrelator;
     _outboundInterceptorFactory = outboundInterceptorFactory;
     _dependencyResolver         = dependencyResolver;
     _logger                     = logger;
     _clock                    = clock;
     _responseTimeout          = responseTimeout;
     _knownMessageTypeVerifier = knownMessageTypeVerifier;
 }
예제 #6
0
        public AzureQueueManager(Func <NamespaceManager> namespaceManager,
                                 Func <MessagingFactory> messagingFactory,
                                 MaxDeliveryAttemptSetting maxDeliveryAttempts,
                                 IRetry retry,
                                 ITypeProvider typeProvider,
                                 DefaultMessageTimeToLiveSetting defaultMessageTimeToLive,
                                 AutoDeleteOnIdleSetting autoDeleteOnIdle,
                                 DefaultTimeoutSetting defaultTimeout,
                                 EnableDeadLetteringOnMessageExpirationSetting enableDeadLetteringOnMessageExpiration)
        {
            _namespaceManager    = namespaceManager;
            _messagingFactory    = messagingFactory;
            _maxDeliveryAttempts = maxDeliveryAttempts;
            _retry                    = retry;
            _typeProvider             = typeProvider;
            _defaultMessageTimeToLive = defaultMessageTimeToLive;
            _autoDeleteOnIdle         = autoDeleteOnIdle;
            _defaultTimeout           = defaultTimeout;
            _enableDeadLetteringOnMessageExpiration = enableDeadLetteringOnMessageExpiration;

            _knownTopics        = new ThreadSafeLazy <ConcurrentSet <string> >(FetchExistingTopics);
            _knownSubscriptions = new ThreadSafeLazy <ConcurrentSet <string> >(FetchExistingSubscriptions);
            _knownQueues        = new ThreadSafeLazy <ConcurrentSet <string> >(FetchExistingQueues);
        }