Provides extension methods for WebApiModule.
InheritanceWebApiModuleExtensions
Namespace: EmbedIO.WebApi Syntaxpublic static class WebApiModuleExtensions
Methods WithController(WebApiModule, Type) Declaration
public static WebApiModule WithController(this WebApiModule this, Type controllerType)
Parameters Type Name Description WebApiModule this
The WebApiModule on which this method is called.
Type controllerTypeThe type of the controller.
Returns Type Description WebApiModulethis
with the controller type registered.
public static WebApiModule WithController(this WebApiModule this, Type controllerType, Func<WebApiController> factory)
Parameters Type Name Description WebApiModule this
The WebApiModule on which this method is called.
Type controllerTypeThe type of the controller.
Func<WebApiController> factoryThe factory method used to construct instances of controllerType
.
this
with the controller type registered.
public static WebApiModule WithController<TController>(this WebApiModule this)
where TController : WebApiController, new()
Parameters Returns Type Description WebApiModule
this
with the controller type registered.
The type of the controller.
See Also WithController<TController>(WebApiModule, Func<TController>) Declarationpublic static WebApiModule WithController<TController>(this WebApiModule this, Func<TController> factory)
where TController : WebApiController
Parameters Type Name Description WebApiModule this
The WebApiModule on which this method is called.
Func<TController> factoryThe factory method used to construct instances of TController
.
this
with the controller type registered.
The type of the controller.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4