public EndpointConfiguratorImpl(Uri uri, IEndpointFactoryDefaultSettings defaultSettings) { _uri = uri; Guard.AgainstNull(uri, "uri"); _transportFactory = DefaultTransportFactory; _errorTransportFactory = DefaultErrorTransportFactory; _settings = defaultSettings.CreateEndpointSettings(uri); }
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 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); }