|
WebPageControllerGetDependencyResolver Method
|
Gets a dependency resolver.
Namespace:
GSF.Web.Hosting
Assembly:
GSF.Web (in GSF.Web.dll) Version: 2.3.171-beta
Syntax static member GetDependencyResolver :
webServer : WebServer *
?defaultWebPage : string *
?model : Object *
?modelType : Type *
?connection : AdoDataConnection
(* Defaults:
let _defaultWebPage = defaultArg defaultWebPage null
let _model = defaultArg model null
let _modelType = defaultArg modelType null
let _connection = defaultArg connection null
*)
-> IDependencyResolver
GSF.Web.Hosting.WebPageController.GetDependencyResolver = function(webServer, defaultWebPage, model, modelType, connection);
Request Example
View SourceParameters
- webServer
- Type: GSF.Web.HostingWebServer
WebServer instance to use for controller; uses default instance if not provided. - defaultWebPage (Optional)
- Type: SystemString
Default web page name to use for controller; uses "index.html" if not provided. - model (Optional)
- Type: SystemObject
Reference to model to use when rendering Razor templates, if any. - modelType (Optional)
- Type: SystemType
Type of model, if any. - connection (Optional)
- Type: GSF.DataAdoDataConnection
AdoDataConnection to use, if any.
Return Value
Type:
IDependencyResolverDependency resolver for the specified parameters.
See Also