public EntityToEtoMapper( IOptions <AbpDistributedEventBusOptions> options, IHybridServiceScopeFactory hybridServiceScopeFactory) { HybridServiceScopeFactory = hybridServiceScopeFactory; Options = options.Value; }
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); }
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; }