public void ReceiveEndpoint(string queueName, Action <TEndpointConfigurator> configureEndpoint) { BusConfigurator.ReceiveEndpoint(queueName, endpointConfigurator => { if (InstanceEndpointConfigurator != null) { endpointConfigurator.AddDependency(InstanceEndpointConfigurator); } configureEndpoint?.Invoke(endpointConfigurator); }); }
public void ReceiveEndpoint(IEndpointDefinition definition, IEndpointNameFormatter endpointNameFormatter, Action <TEndpointConfigurator> configureEndpoint) { endpointNameFormatter ??= EndpointNameFormatter; BusConfigurator.ReceiveEndpoint(definition, endpointNameFormatter, endpointConfigurator => { if (InstanceEndpointConfigurator != null) { endpointConfigurator.AddDependency(InstanceEndpointConfigurator); } configureEndpoint?.Invoke(endpointConfigurator); }); }