Cats.Web.Hub.RoleProvider.GetRolesForUser C# (CSharp) Method

GetRolesForUser() public method

public GetRolesForUser ( string username ) : string[]
username string
return string[]
        public override string[] GetRolesForUser(string username)
        {
            var userRoldeService = (IUserRoleService) DependencyResolver.Current.GetService(typeof (IUserRoleService));
            var roles =
                userRoldeService.Get(t => t.UserProfile.UserName == username, null, "UserProfile,Role").Select(
                    t => t.Role.Name);

            return roles.ToArray();
        }