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