Click or drag to resize

WebPageControllerAppBuilderExtensionsUseWebPageController(IAppBuilder, WebServer, String, Object, Type, AuthenticationOptions) Method

Registers web page controller in web server pipeline.

Namespace: GSF.Web.Hosting
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public static IAppBuilder UseWebPageController(
	this IAppBuilder app,
	WebServer webServer,
	string defaultWebPage = "Index.html",
	Object model = null,
	Type modelType = null,
	AuthenticationOptions options = null
)
View Source

Parameters

app  IAppBuilder
The app builder for the web server pipeline.
webServer  WebServer
WebServer instance to use for controller.
defaultWebPage  String  (Optional)
The default page to display on the default path.
model  Object  (Optional)
Reference to model to use when rendering Razor templates, if any.
modelType  Type  (Optional)
Type of model, if any.
options  AuthenticationOptions  (Optional)
Authentication options for enabling sessions.

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