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