Click or drag to resize

WebPageControllerAppBuilderExtensionsUseWebPageController(IAppBuilder, WebServer, ActionIWebPageControllerBuilder) Method

Registers web page controller in web server pipeline.

Namespace: GSF.Web.Hosting
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public static IAppBuilder UseWebPageController(
	this IAppBuilder app,
	WebServer webServer,
	Action<IWebPageControllerBuilder> webPageControllerConfig
)
View Source

Parameters

app  IAppBuilder
The app builder for the web server pipeline.
webServer  WebServer
WebServer instance to use for controller.
webPageControllerConfig  ActionIWebPageControllerBuilder
Function used to configure the web page controller.

Return Value

IAppBuilder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also