|
WebPageControllerAppBuilderExtensionsUseWebPageController(IAppBuilder, WebServer, String, Object, Type, AuthenticationOptions) Method
|
Registers web page controller in web server pipeline.
Namespace: GSF.Web.HostingAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax [<ExtensionAttribute>]
static member UseWebPageController :
app : IAppBuilder *
webServer : WebServer *
?defaultWebPage : string *
?model : Object *
?modelType : Type *
?options : AuthenticationOptions
(* Defaults:
let _defaultWebPage = defaultArg defaultWebPage "Index.html"
let _model = defaultArg model null
let _modelType = defaultArg modelType null
let _options = defaultArg options null
*)
-> IAppBuilder
GSF.Web.Hosting.WebPageControllerAppBuilderExtensions.UseWebPageController = function(app, webServer, defaultWebPage, model, modelType, options);
View SourceParameters
- 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
IAppBuilderUsage 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