RenderResponse() публичный Метод

Renders an HTTP response for a given request.
public RenderResponse ( HttpRequestMessage request, string pageName, bool isPost, CancellationToken cancellationToken, object model = null, Type modelType = null, AdoDataConnection database = null ) : Task
request System.Net.Http.HttpRequestMessage HTTP request message.
pageName string Name of page to render.
isPost bool trueif is HTTP post; otherwise, false.
cancellationToken System.Threading.CancellationToken Propagates notification from client that operations should be canceled.
model object Reference to model to use when rendering Razor templates, if any.
modelType System.Type Type of , if any.
database AdoDataConnection to use, if any.
Результат Task
Пример #1
0
 public Task <HttpResponseMessage> GetPage(string pageName, CancellationToken cancellationToken)
 {
     return(m_webServer.RenderResponse(Request, pageName, false, cancellationToken, Model, ModelType, Database));
 }
Пример #2
0
 public Task <HttpResponseMessage> GetPage(string pageName)
 {
     return(m_webServer.RenderResponse(Request, pageName, Model, ModelType, Database));
 }