public LocalDistributedEventBus( ILocalEventBus localEventBus, IServiceProvider serviceProvider, IOptions <DistributedEventBusOptions> distributedEventBusOptions) { _localEventBus = localEventBus; ServiceProvider = serviceProvider; DistributedEventBusOptions = distributedEventBusOptions.Value; Subscribe(distributedEventBusOptions.Value.Handlers); }
public LocalDistributedEventBus( ILocalEventBus localEventBus, IHybridServiceScopeFactory serviceScopeFactory, IOptions <DistributedEventBusOptions> distributedEventBusOptions) { _localEventBus = localEventBus; ServiceScopeFactory = serviceScopeFactory; DistributedEventBusOptions = distributedEventBusOptions.Value; Subscribe(distributedEventBusOptions.Value.Handlers); }