public void CreateReceiveEndpoint(string queueName, Action <IInMemoryReceiveEndpointConfigurator> configure) { var specification = new InMemoryReceiveEndpointSpecification(queueName); configure?.Invoke(specification); BusConfigurationResult.CompileResults(specification.Validate()); specification.Apply(_builder); }
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); }
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); }