| 
            
              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.257-beta
Syntaxpublic static IAppBuilder UseWebPageController(
	this IAppBuilder app,
	WebServer webServer,
	string defaultWebPage = "Index.html",
	Object model = null,
	Type modelType = null,
	AuthenticationOptions options = null
)
<ExtensionAttribute>
Public Shared Function UseWebPageController ( 
	app As IAppBuilder,
	webServer As WebServer,
	Optional defaultWebPage As String = "Index.html",
	Optional model As Object = Nothing,
	Optional modelType As Type = Nothing,
	Optional options As AuthenticationOptions = Nothing
) As IAppBuilder
public:
[ExtensionAttribute]
static IAppBuilder^ UseWebPageController(
	IAppBuilder^ app, 
	WebServer^ webServer, 
	String^ defaultWebPage = L"Index.html", 
	Object^ model = nullptr, 
	Type^ modelType = nullptr, 
	AuthenticationOptions^ options = nullptr
)
[<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