예제 #1
0
 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;
 }
예제 #2
0
 protected BaseRepository(IDbConnectionFactory connectionFactory, ISecurityContextProvider securityContextProvider)
 {
     _connectionFactory       = connectionFactory;
     _securityContextProvider = securityContextProvider;
 }