コード例 #1
0
 public EndpointFactory(IDictionary <string, ITransportFactory> transportFactories,
                        IDictionary <Uri, EndpointBuilder> endpointBuilders, IEndpointFactoryDefaultSettings defaults)
 {
     _transportFactories = transportFactories;
     _defaults           = defaults;
     _endpointBuilders   = endpointBuilders;
 }
コード例 #2
0
		public EndpointFactory(IDictionary<string, ITransportFactory> transportFactories,
		                       IDictionary<Uri, EndpointBuilder> endpointBuilders, IEndpointFactoryDefaultSettings defaults)
		{
			_transportFactories = transportFactories;
			_defaults = defaults;
			_endpointBuilders = endpointBuilders;
		}
コード例 #3
0
        public EndpointFactoryBuilderImpl(IEndpointFactoryDefaultSettings defaults)
        {
            _endpointBuilders   = new Dictionary <Uri, EndpointBuilder>();
            _transportFactories = new Dictionary <string, ITransportFactory>();

            AddTransportFactory(new LoopbackTransportFactory());

            _defaults = new EndpointFactoryDefaultSettings(defaults);
        }
コード例 #4
0
		public EndpointFactoryBuilderImpl(IEndpointFactoryDefaultSettings defaults)
		{
			_endpointBuilders = new Dictionary<Uri, EndpointBuilder>();
			_transportFactories = new Dictionary<string, ITransportFactory>();

			AddTransportFactory(new LoopbackTransportFactory());

			_defaults = new EndpointFactoryDefaultSettings(defaults);
		}
コード例 #5
0
		public EndpointFactoryDefaultSettings(IEndpointFactoryDefaultSettings defaults)
		{
			CreateMissingQueues = defaults.CreateMissingQueues;
			PurgeOnStartup = defaults.PurgeOnStartup;
			RequireTransactional = defaults.RequireTransactional;
			Serializer = defaults.Serializer;
			TransactionTimeout = defaults.TransactionTimeout;
			CreateTransactionalQueues = defaults.CreateTransactionalQueues;
		}
コード例 #6
0
 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;
 }
コード例 #7
0
        public EndpointConfiguratorImpl(Uri uri, IEndpointFactoryDefaultSettings defaultSettings)
        {
            _uri = uri;
            Guard.AgainstNull(uri, "uri");

            _transportFactory      = DefaultTransportFactory;
            _errorTransportFactory = DefaultErrorTransportFactory;

            _settings = defaultSettings.CreateEndpointSettings(uri);
        }
コード例 #8
0
		public EndpointConfiguratorImpl(Uri uri, IEndpointFactoryDefaultSettings defaultSettings)
		{
			_uri = uri;
			Guard.AgainstNull(uri, "uri");

			_transportFactory = DefaultTransportFactory;
			_errorTransportFactory = DefaultErrorTransportFactory;

			_settings = defaultSettings.CreateEndpointSettings(uri);
		}
コード例 #9
0
		/// <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;
		}
コード例 #10
0
        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;
        }
コード例 #11
0
        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);
        }
コード例 #12
0
 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;
 }
コード例 #13
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);
        }
コード例 #14
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);
        }
コード例 #15
0
 /// <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);
 }
コード例 #16
0
 static EndpointFactoryBuilder DefaultEndpointResolverBuilderFactory(IEndpointFactoryDefaultSettings defaults)
 {
     return(new EndpointFactoryBuilderImpl(defaults));
 }
コード例 #17
0
		static EndpointFactoryBuilder DefaultEndpointResolverBuilderFactory(IEndpointFactoryDefaultSettings defaults)
		{
			return new EndpointFactoryBuilderImpl(defaults);
		}