Esempio n. 1
0
 public AuthorizationsClient(TContext context, IPrincipalIdProvider principalIdProvider, IGetScopeRightsQuery getScopeRightsQuery, IGetParentGroupsIdQuery getParentGroupsIdQuery)
 {
     this.context                = context;
     this.principalIdProvider    = principalIdProvider;
     this.getScopeRightsQuery    = getScopeRightsQuery;
     this.getParentGroupsIdQuery = getParentGroupsIdQuery;
 }
Esempio n. 2
0
 public GetScopeRightsQuery(TContext context, IAuthorizationsCacheProvider authorizationsCacheProvider, IGetParentGroupsIdQuery getParentGroupsIdQuery)
 {
     this.context = context;
     this.authorizationsCacheProvider      = authorizationsCacheProvider;
     this.getParentGroupsIdQuery           = getParentGroupsIdQuery;
     this.principalRights                  = new Dictionary <Guid, ConcurrentDictionary <Guid, IEnumerable <Right> > >();
     this.principalScopeRights             = new Dictionary <Guid, ConcurrentDictionary <string, IEnumerable <ScopeRights> > >();
     this.principalScopeRightsWithChildren = new Dictionary <Guid, ConcurrentDictionary <string, IEnumerable <ScopeRights> > >();
 }