A module using class methods as handlers.
Public instance methods that match the WebServerModule.ResponseHandler signature, and have the WebApi handler attribute will be used to respond to web server requests.
Namespace: EmbedIO.WebApi Syntaxpublic class WebApiModule : WebApiModuleBase
Constructors WebApiModule(String)
Initializes a new instance of the WebApiModule class, using the default response serializer.
Declarationpublic WebApiModule(string baseRoute)
Parameters Type Name Description String baseRoute
The base URL path served by this module.
See Also WebApiModule(String, ResponseSerializerCallback)Initializes a new instance of the WebApiModule class, using the specified response serializer.
Declarationpublic WebApiModule(string baseRoute, ResponseSerializerCallback serializer)
Parameters See Also Methods RegisterController(Type) Declaration
public void RegisterController(Type controllerType)
Parameters Type Name Description Type controllerType
The type of the controller.
See Also RegisterController(Type, Func<WebApiController>) Declarationpublic void RegisterController(Type controllerType, Func<WebApiController> factory)
Parameters Type Name Description Type controllerType
The type of the controller.
Func<WebApiController> factoryThe factory method used to construct instances of controllerType
.
public void RegisterController<TController>()
where TController : WebApiController, new()
Type Parameters Name Description TController
The type of the controller.
See Also RegisterController<TController>(Func<TController>) Declarationpublic void RegisterController<TController>(Func<TController> factory)
where TController : WebApiController
Parameters Type Name Description Func<TController> factory
The factory method used to construct instances of TController
.
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