public ScopeConsumeFilter(IConsumerScopeProvider scopeProvider) { _scopeProvider = scopeProvider; }
public static void Configure(Type consumerType, IReceiveEndpointConfigurator configurator, IConsumerScopeProvider scopeProvider) { GetOrAdd(consumerType).Configure(configurator, scopeProvider); }
/// <summary> /// Initializes a new instance. /// </summary> /// <param name="definitions"></param> /// <param name="scopeProvider"></param> public ConsumerDefinitionReceiveEndpointConfigurationSource(ConsumerDefinitionProvider definitions, IConsumerScopeProvider scopeProvider) { this.definitions = definitions ?? throw new ArgumentNullException(nameof(definitions)); this.scopeProvider = scopeProvider ?? throw new ArgumentNullException(nameof(scopeProvider)); }
public ScopeConsumerFactory(IConsumerScopeProvider scopeProvider) { _scopeProvider = scopeProvider; }
public void Configure(IReceiveEndpointConfigurator configurator, IConsumerScopeProvider scopeProvider) { var consumerFactory = new ScopeConsumerFactory <T>(scopeProvider); configurator.Consumer(consumerFactory); }