Raven.AspNetProviders.RavenRoleProvider.GetRolesForUser C# (CSharp) Method

GetRolesForUser() public method

public GetRolesForUser ( string username ) : string[]
username string
return string[]
        public override string[] GetRolesForUser(string username)
        {
            using (var session = _documentStore.OpenSession())
            {
                return session.Query<User, Users_ByApplicationNameAndUsername>()
                    .Where(x => x.ApplicationName == ApplicationName && x.Username == username)
                    .SelectMany(x => x.Roles)
                    .ToArray();
            }
        }