コード例 #1
0
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            EndpointBuilder endpointBuilder = CreateBuilder();

            builder.AddEndpointBuilder(_uri, endpointBuilder);

            return(builder);
        }
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            ISupportedMessageSerializers supportedSerializers = _supportedSerializersFactory();
            if (supportedSerializers == null)
                throw new ConfigurationException("The configured default serializer was not created");

            builder.SetSupportedMessageSerializers(supportedSerializers);

            return builder;
        }
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            IMessageSerializer serializer = _serializerFactory();
            if (serializer == null)
                throw new ConfigurationException("The configured default serializer was not created");

            builder.SetDefaultSerializer(serializer);

            return builder;
        }
コード例 #4
0
        public IEndpointFactory CreateEndpointFactory()
        {
            EndpointFactoryBuilder builder = _endpointFactoryBuilderFactory(_defaultSettings);

            foreach (EndpointFactoryBuilderConfigurator configurator in _endpointFactoryConfigurators)
            {
                builder = configurator.Configure(builder);
            }

            return(builder.Build());
        }
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            IMessageSerializer serializer = _serializerFactory();

            if (serializer == null)
            {
                throw new ConfigurationException("The configured default serializer was not created");
            }

            builder.SetDefaultSerializer(serializer);

            return(builder);
        }
コード例 #6
0
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            ISupportedMessageSerializers supportedSerializers = _supportedSerializersFactory();

            if (supportedSerializers == null)
            {
                throw new ConfigurationException("The configured default serializer was not created");
            }

            builder.SetSupportedMessageSerializers(supportedSerializers);

            return(builder);
        }
コード例 #7
0
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            TTransport transportFactory = _transportFactory();

            if (transportFactory == null)
            {
                throw new ConfigurationException("A transport factory was not created");
            }

            builder.AddTransportFactory(transportFactory);

            return(builder);
        }
コード例 #8
0
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            EndpointBuilder endpointBuilder = CreateBuilder();

            builder.AddEndpointBuilder(_uri, endpointBuilder);

            return builder;
        }
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            builder.SetDefaultRetryLimit(_retryLimit);

            return builder;
        }
コード例 #10
0
		public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
		{
			_builderCallback(builder);

			return builder;
		}
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            builder.SetDefaultInboundMessageTrackerFactory(_messageTrackerFactory);

            return(builder);
        }
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            builder.SetDefaultInboundMessageTrackerFactory(_messageTrackerFactory);

            return builder;
        }
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            _builderCallback(builder);

            return(builder);
        }
        public EndpointFactoryBuilder Configure(EndpointFactoryBuilder builder)
        {
            builder.SetDefaultRetryLimit(_retryLimit);

            return(builder);
        }