Candor.Security.UserPrincipal.EnsureRolesLoadedIfAuthenticated C# (CSharp) 메소드

EnsureRolesLoadedIfAuthenticated() 개인적인 메소드

private EnsureRolesLoadedIfAuthenticated ( ) : void
리턴 void
        private void EnsureRolesLoadedIfAuthenticated()
        {
            if (_roles == null && Identity != null && Identity.IsAuthenticated)
            {
                _roles = new List<string>(Roles.GetRolesForUser(Identity.Name));
                _roles.Sort();
            }
        }