public AuthorizationsClient(TContext context, IPrincipalIdProvider principalIdProvider, IGetScopeRightsQuery getScopeRightsQuery, IGetParentGroupsIdQuery getParentGroupsIdQuery) { this.context = context; this.principalIdProvider = principalIdProvider; this.getScopeRightsQuery = getScopeRightsQuery; this.getParentGroupsIdQuery = getParentGroupsIdQuery; }
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> > >(); }