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.WebApiModuleBase.html below:

Class WebApiModuleBase

A module using objects derived from WebApiController as collections of handler methods.

Inheritance

WebApiModuleBase

Namespace: EmbedIO.WebApi Syntax
public abstract class WebApiModuleBase : RoutingModuleBase
Constructors WebApiModuleBase(String)

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

Declaration
protected WebApiModuleBase(string baseRoute)
Parameters Type Name Description String baseRoute

The base route served by this module.

See Also WebApiModuleBase(String, ResponseSerializerCallback)

Initializes a new instance of the WebApiModuleBase class, using the specified response serializer.

Declaration
protected WebApiModuleBase(string baseRoute, ResponseSerializerCallback serializer)
Parameters See Also Properties ControllerCount

Gets the number of controller types registered in this module.

Declaration
public int ControllerCount { get; }
Property Value Serializer

A ResponseSerializerCallback used to serialize the result of controller methods returning values.

Declaration
public ResponseSerializerCallback Serializer { get; }
Property Value Methods RegisterControllerType(Type)

Registers a controller type using a constructor.

In order for registration to be successful, the specified controllerType:

Declaration
protected void RegisterControllerType(Type controllerType)
Parameters Type Name Description Type controllerType

The type of the controller.

See Also RegisterControllerType(Type, Func<WebApiController>)

Registers a controller type using a factory method.

In order for registration to be successful:

Declaration
protected void RegisterControllerType(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 RegisterControllerType<TController>()

Registers a controller type using a constructor.

In order for registration to be successful, the specified controller type:

Declaration
protected void RegisterControllerType<TController>()
    where TController : WebApiController, new()
Type Parameters Name Description TController

The type of the controller.

See Also RegisterControllerType<TController>(Func<TController>)

Registers a controller type using a factory method.

In order for registration to be successful:

Declaration
protected void RegisterControllerType<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