Class PageViewService
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Entry point for the two phases of a PageView request: loading it from the current request, then producing its terminal OutputResult.
public abstract class PageViewService
- Inheritance
-
PageViewService
- Inherited Members
Methods
Load(PageView)
Loads the supplied pageView from the current request and publishes it as the
current page view for the request (so Current() resolves to it).
public abstract OutputResult Load(PageView pageView)
Parameters
Returns
- OutputResult
NoActionOutputResult when the PageView is ready to render; any other OutputResult short-circuits the request (for example a redirect or a 404).
Output(PageView)
Produces the terminal OutputResult for the supplied pageView.
public abstract OutputResult Output(PageView pageView)
Parameters
Returns
- OutputResult
The terminal OutputResult for the request - rendered content, a redirect, a 404, etc.