public EndpointFactory(IDictionary <string, ITransportFactory> transportFactories, IDictionary <Uri, EndpointBuilder> endpointBuilders, IEndpointFactoryDefaultSettings defaults) { _transportFactories = transportFactories; _defaults = defaults; _endpointBuilders = endpointBuilders; }
public EndpointFactory(IDictionary<string, ITransportFactory> transportFactories, IDictionary<Uri, EndpointBuilder> endpointBuilders, IEndpointFactoryDefaultSettings defaults) { _transportFactories = transportFactories; _defaults = defaults; _endpointBuilders = endpointBuilders; }
public EndpointFactoryBuilderImpl(IEndpointFactoryDefaultSettings defaults) { _endpointBuilders = new Dictionary <Uri, EndpointBuilder>(); _transportFactories = new Dictionary <string, ITransportFactory>(); AddTransportFactory(new LoopbackTransportFactory()); _defaults = new EndpointFactoryDefaultSettings(defaults); }
public EndpointFactoryBuilderImpl(IEndpointFactoryDefaultSettings defaults) { _endpointBuilders = new Dictionary<Uri, EndpointBuilder>(); _transportFactories = new Dictionary<string, ITransportFactory>(); AddTransportFactory(new LoopbackTransportFactory()); _defaults = new EndpointFactoryDefaultSettings(defaults); }
public EndpointFactoryDefaultSettings(IEndpointFactoryDefaultSettings defaults) { CreateMissingQueues = defaults.CreateMissingQueues; PurgeOnStartup = defaults.PurgeOnStartup; RequireTransactional = defaults.RequireTransactional; Serializer = defaults.Serializer; TransactionTimeout = defaults.TransactionTimeout; CreateTransactionalQueues = defaults.CreateTransactionalQueues; }
public EndpointFactoryDefaultSettings(IEndpointFactoryDefaultSettings defaults) { CreateMissingQueues = defaults.CreateMissingQueues; CreateTransactionalQueues = defaults.CreateTransactionalQueues; IsolationLevel = defaults.IsolationLevel; PurgeOnStartup = defaults.PurgeOnStartup; RequireTransactional = defaults.RequireTransactional; Serializer = defaults.Serializer; TransactionTimeout = defaults.TransactionTimeout; }
public EndpointConfiguratorImpl(Uri uri, IEndpointFactoryDefaultSettings defaultSettings) { _uri = uri; Guard.AgainstNull(uri, "uri"); _transportFactory = DefaultTransportFactory; _errorTransportFactory = DefaultErrorTransportFactory; _settings = defaultSettings.CreateEndpointSettings(uri); }
/// <summary> /// Creates a new endpoint factory instance /// </summary> /// <param name="transportFactories">Dictionary + contents owned by the EndpointFactory instance.</param> /// <param name="endpointBuilders"></param> /// <param name="defaults"></param> public EndpointFactory([NotNull] IDictionary<string, ITransportFactory> transportFactories, [NotNull] IDictionary<Uri, EndpointBuilder> endpointBuilders, [NotNull] IEndpointFactoryDefaultSettings defaults) { if (transportFactories == null) throw new ArgumentNullException("transportFactories"); if (endpointBuilders == null) throw new ArgumentNullException("endpointBuilders"); if (defaults == null) throw new ArgumentNullException("defaults"); _transportFactories = transportFactories; _defaults = defaults; _endpointBuilders = endpointBuilders; }
public EndpointFactoryDefaultSettings([NotNull] IEndpointFactoryDefaultSettings defaults) { if (defaults == null) { throw new ArgumentNullException("defaults"); } CreateMissingQueues = defaults.CreateMissingQueues; PurgeOnStartup = defaults.PurgeOnStartup; Serializer = defaults.Serializer; RetryLimit = defaults.RetryLimit; TrackerFactory = defaults.TrackerFactory; }
public EndpointFactoryBuilderImpl([NotNull] IEndpointFactoryDefaultSettings defaults) { if (defaults == null) { throw new ArgumentNullException("defaults"); } _endpointBuilders = new Dictionary <Uri, EndpointBuilder>(); _transportFactories = new Dictionary <string, ITransportFactory>(); AddTransportFactory(new LoopbackTransportFactory()); _defaults = new EndpointFactoryDefaultSettings(defaults); }
public EndpointFactoryDefaultSettings([NotNull] IEndpointFactoryDefaultSettings defaults) { if (defaults == null) { throw new ArgumentNullException("defaults"); } CreateMissingQueues = defaults.CreateMissingQueues; CreateTransactionalQueues = defaults.CreateTransactionalQueues; IsolationLevel = defaults.IsolationLevel; PurgeOnStartup = defaults.PurgeOnStartup; RequireTransactional = defaults.RequireTransactional; Serializer = defaults.Serializer; TransactionTimeout = defaults.TransactionTimeout; }
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); }
/// <summary> /// Creates a new endpoint factory instance /// </summary> /// <param name="transportFactories">Dictionary + contents owned by the EndpointFactory instance.</param> /// <param name="endpointBuilders"></param> /// <param name="defaults"></param> public EndpointFactory([NotNull] IDictionary <string, ITransportFactory> transportFactories, [NotNull] IDictionary <Uri, IEndpointBuilder> endpointBuilders, [NotNull] IEndpointFactoryDefaultSettings defaults) { if (transportFactories == null) { throw new ArgumentNullException("transportFactories"); } if (endpointBuilders == null) { throw new ArgumentNullException("endpointBuilders"); } if (defaults == null) { throw new ArgumentNullException("defaults"); } _transportFactories = new ConcurrentCache <string, ITransportFactory>(transportFactories); _defaults = defaults; _endpointBuilders = new ConcurrentCache <Uri, IEndpointBuilder>(endpointBuilders); }
static EndpointFactoryBuilder DefaultEndpointResolverBuilderFactory(IEndpointFactoryDefaultSettings defaults) { return(new EndpointFactoryBuilderImpl(defaults)); }
static EndpointFactoryBuilder DefaultEndpointResolverBuilderFactory(IEndpointFactoryDefaultSettings defaults) { return new EndpointFactoryBuilderImpl(defaults); }