/// <summary>
        /// 	c'tor
        /// </summary>
        public OutboundAzureServiceBusTransport( IAzureServiceBusEndpointAddress address,  ConnectionHandler<AzureServiceBusConnection> connectionHandler, IOutboundSettings outboundSettings)
        {
            if (address == null)
                throw new ArgumentNullException("address");
            if (connectionHandler == null)
                throw new ArgumentNullException("connectionHandler");

            _connectionHandler = connectionHandler;
            _address = address;

            _logger.DebugFormat("created outbound transport for address '{0}'", address);
        }
        public AzureServiceBusTransportFactory(IEnumerable <ConnectionSettingsBuilder> builders,
                                               IInboundSettings inboundSettings, IOutboundSettings outboundSettings)
        {
            _addresses                  = new ConcurrentCache <Uri, IAzureServiceBusEndpointAddress>();
            _connections                = new ConcurrentCache <string, ConnectionHandler <AzureServiceBusConnection> >();
            _connectionSettings         = new ConcurrentCache <string, IConnectionSettings>(StringComparer.InvariantCultureIgnoreCase);
            _connectionSettingsBuilders = new ConcurrentCache <string, ConnectionSettingsBuilder>(x => x.Namespace, builders);

            _formatter = new AzureServiceBusMessageNameFormatter();

            _inboundSettings  = inboundSettings;
            _outboundSettings = outboundSettings;

            _log.Debug("created new transport factory");
        }
        public AzureServiceBusTransportFactory(IEnumerable<ConnectionSettingsBuilder> builders,
            IInboundSettings inboundSettings, IOutboundSettings outboundSettings)
        {
            _addresses = new ConcurrentCache<Uri, IAzureServiceBusEndpointAddress>();
            _connections = new ConcurrentCache<string, ConnectionHandler<AzureServiceBusConnection>>();
            _connectionSettings = new ConcurrentCache<string, IConnectionSettings>(StringComparer.InvariantCultureIgnoreCase);
            _connectionSettingsBuilders = new ConcurrentCache<string, ConnectionSettingsBuilder>(x => x.Namespace, builders);

            _formatter = new AzureServiceBusMessageNameFormatter();

            _inboundSettings = inboundSettings;
            _outboundSettings = outboundSettings;

            _log.Debug("created new transport factory");
        }
Exemple #4
0
        /// <summary>
        ///     c'tor
        /// </summary>
        public OutboundAzureServiceBusTransport(IAzureServiceBusEndpointAddress address, ConnectionHandler <AzureServiceBusConnection> connectionHandler, IOutboundSettings outboundSettings)
        {
            if (address == null)
            {
                throw new ArgumentNullException("address");
            }
            if (connectionHandler == null)
            {
                throw new ArgumentNullException("connectionHandler");
            }

            _connectionHandler = connectionHandler;
            _address           = address;

            _logger.DebugFormat("created outbound transport for address '{0}'", address);
        }