Ejemplo n.º 1
0
        public HtmlDocument RoutesByRole()
        {
            var list = AuthorizationWriter.BuildListOfRoles(_graph, (chain, tag) =>
            {
                tag.Text(chain.RoutePattern);
            });

            return(_writer.BuildDocument("Routes by Role", list));
        }
Ejemplo n.º 2
0
        public HtmlDocument ActionsByRole()
        {
            var list = AuthorizationWriter.BuildListOfRoles(_graph, (chain, tag) =>
            {
                tag.Text(chain.Calls.Select(x => x.Description).Join(", "));
            });

            return(_writer.BuildDocument("Actions by Role", list));
        }