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

Provides singleton instances of custom WebHook services such as a default IWebHookStore implementation, IWebHookManager etc. 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
GetFilterManager ( IEnumerable filterProviders ) : IWebHookFilterManager

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

GetFilterProviders ( ) : IEnumerable

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

GetStore ( ) : IWebHookStore

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

GetUser ( ) : IWebHookUser

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

SetSender ( IWebHookSender instance ) : void

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

SetStore ( IWebHookStore instance ) : void

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

SetUser ( IWebHookUser instance ) : void

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

Private Methods

Méthode Description
GetManager ( IWebHookStore store, IWebHookSender sender, ILogger logger ) : IWebHookManager
GetSender ( ILogger logger ) : IWebHookSender
Reset ( ) : void

For testing purposes

Method Details

GetFilterManager() public static méthode

Gets a default IWebHookFilterManager implementation which is used if none are registered with the Dependency Injection engine.
public static GetFilterManager ( IEnumerable filterProviders ) : IWebHookFilterManager
filterProviders IEnumerable The collection of instances to use.
Résultat IWebHookFilterManager

GetFilterProviders() public static méthode

Gets the set of IWebHookFilterProvider instances discovered by a default discovery mechanism which is used if none are registered with the Dependency Injection engine.
public static GetFilterProviders ( ) : IEnumerable
Résultat IEnumerable

GetStore() public static méthode

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

GetUser() public static méthode

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

SetSender() public static méthode

Sets a default IWebHookSender implementation which is used if none are registered with the Dependency Injection engine.
public static SetSender ( IWebHookSender instance ) : void
instance IWebHookSender The to use. If null then a default implementation is used.
Résultat void

SetStore() public static méthode

Sets a default IWebHookStore implementation which is used if none are registered with the Dependency Injection engine.
public static SetStore ( IWebHookStore instance ) : void
instance IWebHookStore The to use. If null then a default implementation is used.
Résultat void

SetUser() public static méthode

Sets a default IWebHookUser implementation which is used if none are registered with the Dependency Injection engine.
public static SetUser ( IWebHookUser instance ) : void
instance IWebHookUser The to use. If null then a default implementation is used.
Résultat void