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