A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://unosquare.github.io/embedio/api/EmbedIO.WebApi.WebApiModule.html below:

Class WebApiModule

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 Syntax
public class WebApiModule : WebApiModuleBase
Constructors WebApiModule(String)

Initializes a new instance of the WebApiModule class, using the default response serializer.

Declaration
public 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.

Declaration
public 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>) Declaration
public void RegisterController(Type controllerType, Func<WebApiController> factory)
Parameters Type Name Description Type controllerType

The type of the controller.

Func<WebApiController> factory

The factory method used to construct instances of controllerType.

See Also RegisterController<TController>() Declaration
public void RegisterController<TController>()
    where TController : WebApiController, new()
Type Parameters Name Description TController

The type of the controller.

See Also RegisterController<TController>(Func<TController>) Declaration
public 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.

Type Parameters Name Description TController

The type of the controller.

See Also

RetroSearch 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