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

GetUsersInRole() public method

public GetUsersInRole ( string roleName ) : string[]
roleName string
return string[]
        public override string[] GetUsersInRole(string roleName)
        {
            using (var session = _documentStore.OpenSession())
            {
                return session.Query<User, Users_ByApplicationNameAndUsername>()
                    .Where(x => x.ApplicationName == ApplicationName)
                    .Select(x => x.Username)
                    .ToArray();
            }
        }