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

GetAllRoles() public method

public GetAllRoles ( ) : string[]
return string[]
        public override string[] GetAllRoles()
        {
            using (var session = _documentStore.OpenSession())
            {
                var app = session.Query<Application>().SingleOrDefault(x => x.Name == ApplicationName);
                return app == null ? new string[] { } : app.Roles.ToArray();
            }
        }