public UnitOfWork(IServiceProvider serviceProvider, IOptions <UnitOfWorkDefaultOptions> options) { ServiceProvider = serviceProvider; _defaultOptions = options.Value; _databaseApis = new Dictionary <string, IDatabaseApi>(); _transactionApis = new Dictionary <string, ITransactionApi>(); }
public UnitOfWorkInterceptor(IUnitOfWorkManager unitOfWorkManager, IOptions <UnitOfWorkDefaultOptions> options) { _unitOfWorkManager = unitOfWorkManager; _defaultOptions = options.Value; }