Exemplo n.º 1
0
        public async Task RenderElementKind(RequestUrlKind kind, String pathInfo, ExpandoObject loadPrms, TextWriter writer)
        {
            RequestModel rm = await RequestModel.CreateFromUrl(_host, Admin, kind, pathInfo);

            RequestView rw = rm.GetCurrentAction(kind);

            await Render(rw, writer, loadPrms);
        }
Exemplo n.º 2
0
        public async Task RenderElementKind(RequestUrlKind kind, String pathInfo, ExpandoObject loadPrms, TextWriter writer)
        {
            RequestModel rm = await RequestModel.CreateFromUrl(_host, kind, pathInfo);

            RequestView rw = rm.GetCurrentAction(kind);

            rw.CheckPermissions(_userStateManager?.GetUserPermissions(), Host.IsDebugConfiguration);
            await Render(rw, writer, loadPrms);
        }
Exemplo n.º 3
0
        public async Task RenderModel(String pathInfo, ExpandoObject loadPrms, TextWriter writer)
        {
            RequestModel rm = await RequestModel.CreateFromUrl(_host, Admin, RequestUrlKind.Page, pathInfo);

            RequestView rw = rm.GetCurrentAction(RequestUrlKind.Page);

            rw.view = NO_VIEW;             // no view here
            await Render(rw, writer, loadPrms);
        }