Click or drag to resize

WebPageControllerGetDependencyResolver Method

Gets a dependency resolver.

Namespace:  GSF.Web.Hosting
Assembly:  GSF.Web (in GSF.Web.dll) Version: 2.3.171-beta
Syntax
public static IDependencyResolver GetDependencyResolver(
	WebServer webServer,
	string defaultWebPage = null,
	Object model = null,
	Type modelType = null,
	AdoDataConnection connection = null
)
Request Example View Source

Parameters

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: IDependencyResolver
Dependency resolver for the specified parameters.
See Also