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();
}
}