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.
Afficher le fichier Open project: aspnet/WebHooks Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Reset ( ) : void

For testing purposes

Method Details

GetIdValidator() public static méthode

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

GetRegistrars() public static méthode

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
Résultat IEnumerable

SetIdValidator() public static méthode

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.
Résultat void