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

Méthodes publiques

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

Méthode Description
Reset ( ) : void

Resets all values for testing purposes.

Method Details

GetHandlerSorter() public static méthode

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

GetHandlers() public static méthode

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

GetReceiverConfig() public static méthode

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

GetReceiverManager() public static méthode

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

GetReceivers() public static méthode

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

SetReceiverConfig() public static méthode

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