コード例 #1
0
 public bool IsUserExists(string username)
 {
     return(GetCached(string.Format("IsUserExists_{0}", username), () => roleService.IsUserExists(username)));
 }
コード例 #2
0
ファイル: SecurityService.cs プロジェクト: nemesv/ASTRA.EMSG
        public bool IsUserExists(string username)
        {
            var mandatorShorts = identityCacheService.GetMandatorShort(username);

            return(identityCacheService.IsUserExists(username) && mandatorShorts != null && mandatorShorts.Any());
        }