Пример #1
0
 public EntityToEtoMapper(
     IOptions <AbpDistributedEntityEventOptions> options,
     IServiceScopeFactory hybridServiceScopeFactory)
 {
     HybridServiceScopeFactory = hybridServiceScopeFactory;
     Options = options.Value;
 }
Пример #2
0
        public EntityChangeEventHelper(
            IUnitOfWorkManager unitOfWorkManager,
            IEntityToEtoMapper entityToEtoMapper,
            IOptions <AbpDistributedEntityEventOptions> distributedEntityEventOptions)
        {
            UnitOfWorkManager             = unitOfWorkManager;
            EntityToEtoMapper             = entityToEtoMapper;
            DistributedEntityEventOptions = distributedEntityEventOptions.Value;

            LocalEventBus       = NullLocalEventBus.Instance;
            DistributedEventBus = NullDistributedEventBus.Instance;
            Logger = NullLogger <EntityChangeEventHelper> .Instance;
        }