コード例 #1
0
        public void CreateReceiveEndpoint(string queueName, Action <IInMemoryReceiveEndpointConfigurator> configure)
        {
            var specification = new InMemoryReceiveEndpointSpecification(queueName);

            configure?.Invoke(specification);

            BusConfigurationResult.CompileResults(specification.Validate());

            specification.Apply(_builder);
        }
コード例 #2
0
        public void CreateReceiveEndpoint(string queueName, Action <IInMemoryReceiveEndpointConfigurator> configure)
        {
            var endpointConfiguration = _configuration.CreateNewConfiguration();

            var specification = new InMemoryReceiveEndpointSpecification(_builder.InMemoryHost.Address, queueName, _sendTransportProvider, endpointConfiguration);

            configure?.Invoke(specification);

            BusConfigurationResult.CompileResults(specification.Validate());

            specification.Apply(_builder);
        }
コード例 #3
0
        public void ReceiveEndpoint(string queueName, Action <IInMemoryReceiveEndpointConfigurator> configureEndpoint)
        {
            var endpointSpecification = _configuration.CreateNewConfiguration();

            var specification = new InMemoryReceiveEndpointSpecification(InMemoryHost.Address, queueName, SendTransportProvider, endpointSpecification);

            specification.ConnectConsumerConfigurationObserver(this);
            specification.ConnectSagaConfigurationObserver(this);

            configureEndpoint?.Invoke(specification);

            AddReceiveEndpointSpecification(specification);
        }