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");
        }
        public InboundAzureServiceBusTransport(IAzureServiceBusEndpointAddress address,
            ConnectionHandler<AzureServiceBusConnection> connectionHandler,
            IMessageNameFormatter formatter = null,
            IInboundSettings inboundSettings = null)
        {
            if (address == null)
                throw new ArgumentNullException("address");
            if (connectionHandler == null)
                throw new ArgumentNullException("connectionHandler");

            _address = address;
            _connectionHandler = connectionHandler;
            _formatter = formatter ?? new AzureServiceBusMessageNameFormatter();
            _inboundSettings = inboundSettings;

            _logger.DebugFormat("created new inbound transport for '{0}'", address);
        }
        public InboundAzureServiceBusTransport(IAzureServiceBusEndpointAddress address,
                                               ConnectionHandler <AzureServiceBusConnection> connectionHandler,
                                               IMessageNameFormatter formatter  = null,
                                               IInboundSettings inboundSettings = null)
        {
            if (address == null)
            {
                throw new ArgumentNullException("address");
            }
            if (connectionHandler == null)
            {
                throw new ArgumentNullException("connectionHandler");
            }

            _address           = address;
            _connectionHandler = connectionHandler;
            _formatter         = formatter ?? new AzureServiceBusMessageNameFormatter();
            _inboundSettings   = inboundSettings;

            _logger.DebugFormat("created new inbound transport for '{0}'", address);
        }
 /// <summary>
 ///     c'tor for consumer
 /// </summary>
 /// <param name="address">The address configured for the consumer</param>
 /// <param name="inboundSettings"></param>
 public Consumer(IAzureServiceBusEndpointAddress address, IInboundSettings inboundSettings)
 {
     _address = address;
 }