Example #1
0
        public EndpointBuilderImpl([NotNull] Uri uri, [NotNull] IEndpointSettings settings,
                                   [NotNull] ITransportSettings errorSettings, [NotNull] DuplexTransportFactory transportFactory,
                                   [NotNull] OutboundTransportFactory errorTransportFactory,
                                   [NotNull] Func <IInboundMessageTracker> messageTrackerFactory)
        {
            Guard.AgainstNull(uri, "uri");

            _uri                   = uri;
            _settings              = settings;
            _errorSettings         = errorSettings;
            _transportFactory      = transportFactory;
            _errorTransportFactory = errorTransportFactory;
            _messageTrackerFactory = messageTrackerFactory;
        }
        public EndpointBuilderImpl([NotNull] Uri uri, [NotNull] IEndpointSettings settings,
            [NotNull] ITransportSettings errorSettings, [NotNull] DuplexTransportFactory transportFactory,
            [NotNull] OutboundTransportFactory errorTransportFactory,
            [NotNull] Func<IInboundMessageTracker> messageTrackerFactory)
        {
            Guard.AgainstNull(uri, "uri");

            _uri = uri;
            _settings = settings;
            _errorSettings = errorSettings;
            _transportFactory = transportFactory;
            _errorTransportFactory = errorTransportFactory;
            _messageTrackerFactory = messageTrackerFactory;
        }
        public EndpointConfiguratorImpl([NotNull] Uri uri,
            [NotNull] IEndpointFactoryDefaultSettings defaultSettings)
        {
            if (uri == null)
                throw new ArgumentNullException("uri");
            if (defaultSettings == null)
                throw new ArgumentNullException("defaultSettings");

            _uri = uri;

            _transportFactory = DefaultTransportFactory;
            _errorTransportFactory = DefaultErrorTransportFactory;

            _settings = defaultSettings.CreateEndpointSettings(uri);
        }
        public EndpointConfiguratorImpl([NotNull] IEndpointAddress address,
            [NotNull] IEndpointFactoryDefaultSettings defaultSettings)
        {
            if (address == null)
                throw new ArgumentNullException("address");
            if (defaultSettings == null)
                throw new ArgumentNullException("defaultSettings");

            _baseUri = new Uri(address.Uri.GetLeftPart(UriPartial.Path));

            _transportFactory = DefaultTransportFactory;
            _errorTransportFactory = DefaultErrorTransportFactory;

            _settings = defaultSettings.CreateEndpointSettings(address);
        }
        public EndpointBuilderImpl([NotNull] IEndpointAddress address, [NotNull] IEndpointSettings settings,
            [NotNull] ITransportSettings errorSettings, [NotNull] DuplexTransportFactory transportFactory,
            [NotNull] OutboundTransportFactory errorTransportFactory,
            [NotNull] Func<IInboundMessageTracker> messageTrackerFactory)
        {
            if (address == null)
                throw new ArgumentNullException("address");

            _address = address;
            _settings = settings;
            _errorSettings = errorSettings;
            _transportFactory = transportFactory;
            _errorTransportFactory = errorTransportFactory;
            _messageTrackerFactory = messageTrackerFactory;
        }
Example #6
0
        public EndpointBuilder([NotNull] IEndpointAddress address, [NotNull] EndpointSettings settings,
                               [NotNull] ITransportSettings errorSettings, [NotNull] DuplexTransportFactory transportFactory,
                               [NotNull] OutboundTransportFactory errorTransportFactory,
                               [NotNull] Func <IInboundMessageTracker> messageTrackerFactory)
        {
            if (address == null)
            {
                throw new ArgumentNullException("address");
            }

            _address               = address;
            _settings              = settings;
            _errorSettings         = errorSettings;
            _transportFactory      = transportFactory;
            _errorTransportFactory = errorTransportFactory;
            _messageTrackerFactory = messageTrackerFactory;
        }
Example #7
0
        public EndpointConfiguratorImpl([NotNull] Uri uri,
                                        [NotNull] IEndpointFactoryDefaultSettings defaultSettings)
        {
            if (uri == null)
            {
                throw new ArgumentNullException("uri");
            }
            if (defaultSettings == null)
            {
                throw new ArgumentNullException("defaultSettings");
            }

            _uri = uri;

            _transportFactory      = DefaultTransportFactory;
            _errorTransportFactory = DefaultErrorTransportFactory;

            _settings = defaultSettings.CreateEndpointSettings(uri);
        }
Example #8
0
        public EndpointConfigurator([NotNull] IEndpointAddress address,
                                    [NotNull] IEndpointFactoryDefaultSettings defaultSettings)
        {
            if (address == null)
            {
                throw new ArgumentNullException("address");
            }
            if (defaultSettings == null)
            {
                throw new ArgumentNullException("defaultSettings");
            }

            _baseUri = new Uri(address.Uri.GetLeftPart(UriPartial.Path));

            _transportFactory      = DefaultTransportFactory;
            _errorTransportFactory = DefaultErrorTransportFactory;

            _settings = defaultSettings.CreateEndpointSettings(address);
        }
 public EndpointConfigurator SetTransportFactory(DuplexTransportFactory transportFactory)
 {
     _transportFactory = transportFactory;
     return this;
 }
Example #10
0
 public EndpointConfigurator SetTransportFactory(DuplexTransportFactory transportFactory)
 {
     _transportFactory = transportFactory;
     return(this);
 }