C# Class Microsoft.AspNet.WebHooks.Services.CustomApiServices

Provides singleton instances of custom WebHook API services used by this module. If alternative implementations are provided by a Dependency Injection engine then those instances are used instead.
Mostra file Open project: aspnet/WebHooks Class Usage Examples

Public Methods

Method Description
GetIdValidator ( ) : IWebHookIdValidator

Gets a default IWebHookIdValidator implementation which is used if none are registered with the Dependency Injection engine.

GetRegistrars ( ) : IEnumerable

Gets the set of IWebHookRegistrar instances discovered by a default discovery mechanism which is used if none are registered with the Dependency Injection engine.

SetIdValidator ( IWebHookIdValidator instance ) : void

Sets a default IWebHookIdValidator implementation which is used if none are registered with the Dependency Injection engine.

Private Methods

Method Description
Reset ( ) : void

For testing purposes

Method Details

GetIdValidator() public static method

Gets a default IWebHookIdValidator implementation which is used if none are registered with the Dependency Injection engine.
public static GetIdValidator ( ) : IWebHookIdValidator
return IWebHookIdValidator

GetRegistrars() public static method

Gets the set of IWebHookRegistrar instances discovered by a default discovery mechanism which is used if none are registered with the Dependency Injection engine.
public static GetRegistrars ( ) : IEnumerable
return IEnumerable

SetIdValidator() public static method

Sets a default IWebHookIdValidator implementation which is used if none are registered with the Dependency Injection engine.
public static SetIdValidator ( IWebHookIdValidator instance ) : void
instance IWebHookIdValidator The to use. If null then a default implementation is used.
return void