public async Task <IEnumerable <ConfigEntrySlim> > GetGroupConfigurationAsync(ClaimsPrincipal user, string groupName) => await _configRepository.GetWeightedConfigEntryByGroupAsync( Environment, user.Application(), user.DomainName(), user.UserName(), groupName);
public async Task <ConfigEntrySlim> GetSettingAsync(ClaimsPrincipal user, string key) => await _configRepository.GetWeightedConfigEntryByKeyAsync( Environment, user.Application(), user.DomainName(), user.UserName(), key);
public async Task <ConfigEntrySlim> GetSettingAsync(ClaimsPrincipal user, string key) => await repository.GetWeightedConfigEntryByKeyAsync( environment, user.Application(), user.DomainName(), user.UserName(), key.ToLowerInvariant());
public static SessionInfo AsSessionInfo(this ClaimsPrincipal principal) => new SessionInfo { ApplicationName = principal.Application(), ApplicationVersion = principal.ApplicationVersion(), SessionId = principal.SessionId(), DepartmentName = principal.Department(), DomainName = principal.DomainName(), UserName = principal.UserName(), RoleNames = principal.GetRoles(), MachineName = principal.MachineName() };
private string BuildCacheKey(ClaimsPrincipal c, string suffix) => BuildCacheKey(Prefix, Environment, c.Application(), c.DomainName(), c.UserName(), suffix);
public async Task <IEnumerable <ConfigEntrySlim> > GetUserConfigurationAsync(ClaimsPrincipal user) => await _configRepository.GetWeightedConfigEntriesAsync( Environment, user.Application(), user.DomainName(), user.UserName());