|
WebServerGetConfiguredServer Method
|
Gets a shared
WebServer instance created based on configured options defined in the specified
settingsCategory.
Namespace: GSF.Web.HostingAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax Public Shared Function GetConfiguredServer (
Optional settingsCategory As String = Nothing,
Optional razorEngineCS As IRazorEngine = Nothing,
Optional razorEngineVB As IRazorEngine = Nothing
) As WebServer
static member GetConfiguredServer :
?settingsCategory : string *
?razorEngineCS : IRazorEngine *
?razorEngineVB : IRazorEngine
(* Defaults:
let _settingsCategory = defaultArg settingsCategory null
let _razorEngineCS = defaultArg razorEngineCS null
let _razorEngineVB = defaultArg razorEngineVB null
*)
-> WebServer
GSF.Web.Hosting.WebServer.GetConfiguredServer = function(settingsCategory, razorEngineCS, razorEngineVB);
View SourceParameters
- settingsCategory String (Optional)
- Settings category to use for web server options; defaults to "systemSettings".
- razorEngineCS IRazorEngine (Optional)
- Razor engine instance for .cshtml templates; uses default instance if not provided.
- razorEngineVB IRazorEngine (Optional)
- Razor engine instance for .vbhtml templates; uses default instance if not provided.
Return Value
WebServerShared
WebServer instance created based on configured options.
See Also