コード例 #1
0
        public HtmlDocument RoutesByRole()
        {
            var list = AuthorizationWriter.BuildListOfRoles(_graph, (chain, tag) =>
            {
                tag.Text(chain.RoutePattern);
            });

            return(_writer.BuildDocument("Routes by Role", list));
        }
コード例 #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));
        }