Click or drag to resize

WebServerRenderResponse Method

Renders an HTTP response for a given request.

Namespace: GSF.Web.Hosting
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public Task<HttpResponseMessage> RenderResponse(
	HttpRequestMessage request,
	string pageName,
	CancellationToken cancellationToken,
	Object model = null,
	Type modelType = null,
	AdoDataConnection database = null
)
View Source

Parameters

request  HttpRequestMessage
HTTP request message.
pageName  String
Name of page to render.
cancellationToken  CancellationToken
Propagates notification from client that operations should be canceled.
model  Object  (Optional)
Reference to model to use when rendering Razor templates, if any.
modelType  Type  (Optional)
Type of model, if any.
database  AdoDataConnection  (Optional)
AdoDataConnection to use, if any.

Return Value

TaskHttpResponseMessage
HTTP response for provided request.
See Also