Example #1
0
 public EntityToEtoMapper(
     IOptions <AbpDistributedEventBusOptions> options,
     IHybridServiceScopeFactory hybridServiceScopeFactory)
 {
     HybridServiceScopeFactory = hybridServiceScopeFactory;
     Options = options.Value;
 }
Example #2
0
 public LocalDistributedEventBus(
     ILocalEventBus localEventBus,
     IServiceScopeFactory serviceScopeFactory,
     IOptions <AbpDistributedEventBusOptions> distributedEventBusOptions)
 {
     _localEventBus                = localEventBus;
     ServiceScopeFactory           = serviceScopeFactory;
     AbpDistributedEventBusOptions = distributedEventBusOptions.Value;
     Subscribe(distributedEventBusOptions.Value.Handlers);
 }
 public InMemDistributedEventBus(
     ILocalEventBus localEventBus,
     IServiceScopeFactory serviceScopeFactory,
     IOptions <AbpDistributedEventBusOptions> distributedEventBusOptions)
 {
     _localEventBus                 = localEventBus;
     _serviceScopeFactory           = serviceScopeFactory;
     _abpDistributedEventBusOptions = distributedEventBusOptions.Value;
     _eventTypeCollection           = GetEventTypeCollection(distributedEventBusOptions.Value.Handlers);
     Subscribe(distributedEventBusOptions.Value.Handlers);
 }
Example #4
0
 protected DistributedEventBusBase(
     IServiceScopeFactory serviceScopeFactory,
     ICurrentTenant currentTenant,
     IUnitOfWorkManager unitOfWorkManager,
     IOptions <AbpDistributedEventBusOptions> abpDistributedEventBusOptions,
     IGuidGenerator guidGenerator,
     IClock clock
     ) : base(
         serviceScopeFactory,
         currentTenant,
         unitOfWorkManager)
 {
     GuidGenerator = guidGenerator;
     Clock         = clock;
     AbpDistributedEventBusOptions = abpDistributedEventBusOptions.Value;
 }