Exemplo n.º 1
0
        public UnitOfWork(IServiceProvider serviceProvider, IOptions <RocketUnitOfWorkDefaultOptions> options)
        {
            ServiceProvider = serviceProvider;
            _defaultOptions = options.Value;

            _databaseApis    = new Dictionary <string, IDatabaseApi> ();
            _transactionApis = new Dictionary <string, ITransactionApi> ();

            Items = new Dictionary <string, object> ();
        }
Exemplo n.º 2
0
 public UnitOfWorkInterceptor(IUnitOfWorkManager unitOfWorkManager, IOptions <RocketUnitOfWorkDefaultOptions> options)
 {
     _unitOfWorkManager = unitOfWorkManager;
     _defaultOptions    = options.Value;
 }