protected override void Dispose(bool disposing) { if (disposing) { cache = null; commonOption = null; } base.Dispose(disposing); }
public AppStorageRepository( ISession session, IMapper mapper, IDistributedCache cache, IWebHostEnvironment hostEnv, CommonOption commonOption ) : base(session, mapper) { this.cache = cache ?? throw new ArgumentNullException(nameof(cache)); this.hostEnv = hostEnv ?? throw new ArgumentNullException(nameof(hostEnv)); this.commonOption = commonOption ?? throw new ArgumentNullException(nameof(commonOption)); }
protected override void Dispose(bool disposing) { if (disposing) { logger = null; userMgr = null; roleMgr = null; jwt = null; navRepo = null; cache = null; userTokenRepo = null; usersCtrl = null; privilegeRepo = null; commonOption = null; } base.Dispose(disposing); }
public AccountController( ILogger <AccountController> logger, UserManager <AppUser> userMgr, RoleManager <AppRole> roleMgr, IOptionsSnapshot <JwtOption> jwt, IAppNavItemRepository navRepo, IDistributedCache cache, IAppUserTokenRepository userTokenRepo, UsersController usersCtrl, IAppPrivilegeRepository privilegeRepo, CommonOption commonOption ) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.userMgr = userMgr ?? throw new ArgumentNullException(nameof(userMgr)); this.roleMgr = roleMgr ?? throw new ArgumentNullException(nameof(roleMgr)); this.jwt = jwt.Value ?? throw new ArgumentNullException(nameof(jwt)); this.navRepo = navRepo ?? throw new ArgumentNullException(nameof(navRepo)); this.cache = cache ?? throw new ArgumentNullException(nameof(cache)); this.userTokenRepo = userTokenRepo ?? throw new ArgumentNullException(nameof(userTokenRepo)); this.usersCtrl = usersCtrl ?? throw new ArgumentNullException(nameof(usersCtrl)); this.privilegeRepo = privilegeRepo ?? throw new ArgumentNullException(nameof(privilegeRepo)); this.commonOption = commonOption ?? throw new ArgumentNullException(nameof(commonOption)); }
public AppUserTokenRepository(ISession session, IMapper mapper, IDistributedCache cache, CommonOption commonOption) : base(session, mapper) { this.cache = cache ?? throw new ArgumentNullException(nameof(cache)); this.commonOption = commonOption ?? throw new ArgumentNullException(nameof(commonOption)); }
public ProcessTool(CommonOption options, bool outputToStdOut) { this.outputToStdOut = outputToStdOut; this.options = options; }