示例#1
0
 public AuthorizationManager(
     IPluginsContainer <IClaimProvider> claimProviders,
     IUserInfo userInfo,
     ILogProvider logProvider,
     IAuthorizationProvider authorizationProvider,
     AppSecurityOptions appSecurityOptions,
     ILocalizer localizer)
 {
     _appSecurityOptions    = appSecurityOptions;
     _userInfo              = userInfo;
     _claimProviders        = claimProviders;
     _authorizationProvider = authorizationProvider;
     _logger            = logProvider.GetLogger(GetType().Name);
     _performanceLogger = logProvider.GetLogger("Performance." + GetType().Name);
     _allClaimsForUsers = FromConfigAllClaimsForUsers();
     _localizer         = localizer;
 }
示例#2
0
 public WindowsSecurity(ILogProvider logProvider, AppSecurityOptions appSecurityOptions)
 {
     _logger             = logProvider.GetLogger(GetType().Name);
     _performanceLogger  = logProvider.GetLogger("Performance." + GetType().Name);
     _appSecurityOptions = appSecurityOptions;
 }