public SecurityContext(ISecurityOptions <TContext> securityOptions, ISecurityImpersonationService impersonationService, ISecurityContextProvider <TContext> securityContextProvider = null) { _securityOptions = securityOptions ?? throw new ArgumentNullException(nameof(securityOptions)); _impersonationService = impersonationService ?? throw new ArgumentNullException(nameof(impersonationService)); _securityContextProvider = securityContextProvider; }
protected BaseRepository(IDbConnectionFactory connectionFactory, ISecurityContextProvider securityContextProvider) { _connectionFactory = connectionFactory; _securityContextProvider = securityContextProvider; }