protected IdentityRepositoryBase(ILoggerFactory loggerFactory, IIdentityDatabaseFactory <TContext, TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken> databaseFactory) { _loggerFactory = loggerFactory; DatabaseFactory = databaseFactory; DataBaseSet = DataContext.Set <TEntity>(); Logger = _loggerFactory.CreateLogger <IdentityRepositoryBase <TContext, TEntity, TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken> >(); }
protected override void DisposeManagedResources() { if (_dbFactory != null) { _dbFactory.Dispose(); _dbFactory = null; } if (_context == null) { return; } _context.Dispose(); _context = null; }
public StdIdentityUnitOfWork(IIdentityDatabaseFactory <TContext, TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken> dbFactory) { _dbFactory = dbFactory; }