C# Class Microsoft.AspNet.WebHooks.ReceiverServices

Provides singleton instances of WebHook receiver services. 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
GetHandlerSorter ( ) : IWebHookHandlerSorter

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

GetHandlers ( ) : IEnumerable

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

GetReceiverConfig ( SettingsDictionary settings, ILogger logger ) : IWebHookReceiverConfig

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

GetReceiverManager ( IEnumerable receivers, ILogger logger ) : IWebHookReceiverManager

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

GetReceivers ( ) : IEnumerable

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

SetReceiverConfig ( IWebHookReceiverConfig instance ) : void

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

Private Methods

Method Description
Reset ( ) : void

Resets all values for testing purposes.

Method Details

GetHandlerSorter() public static method

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

GetHandlers() public static method

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

GetReceiverConfig() public static method

Gets a default IWebHookReceiverConfig implementation which is used if none are registered with the Dependency Injection engine.
public static GetReceiverConfig ( SettingsDictionary settings, ILogger logger ) : IWebHookReceiverConfig
settings SettingsDictionary
logger ILogger
return IWebHookReceiverConfig

GetReceiverManager() public static method

Gets a default IWebHookReceiverManager implementation which is used if none are registered with the Dependency Injection engine.
public static GetReceiverManager ( IEnumerable receivers, ILogger logger ) : IWebHookReceiverManager
receivers IEnumerable
logger ILogger
return IWebHookReceiverManager

GetReceivers() public static method

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

SetReceiverConfig() public static method

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