Exemplo n.º 1
0
        protected void ConfigureReceiveEndpoint <T>(IReceiveEndpointConfiguration configuration, T configurator,
                                                    Action <T> configure)
            where T : IReceiveEndpointConfigurator
        {
            configuration.ConnectConsumerConfigurationObserver(this);
            configuration.ConnectSagaConfigurationObserver(this);
            configuration.ConnectHandlerConfigurationObserver(this);

            configure?.Invoke(configurator);

            EndpointObservable.EndpointConfigured(configurator);

            var specification = new ConfigurationReceiveEndpointSpecification(configuration);

            _endpointSpecifications.Add(specification);
        }
 public ConnectHandle ConnectSagaConfigurationObserver(ISagaConfigurationObserver observer)
 {
     return(_configuration.ConnectSagaConfigurationObserver(observer));
 }