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.
显示文件 Open project: aspnet/WebHooks Class Usage Examples

Public Methods

Method 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

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

For testing purposes

Method Details

GetFilterManager() public static method

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.
return IWebHookFilterManager

GetFilterProviders() public static method

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
return IEnumerable

GetStore() public static method

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

GetUser() public static method

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

SetSender() public static method

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.
return void

SetStore() public static method

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.
return void

SetUser() public static method

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.
return void