C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Reset ( ) : void

Resets all values for testing purposes.

Описание методов

GetHandlerSorter() публичный статический Метод

Gets a default IWebHookHandlerSorter implementation which is used if none are registered with the Dependency Injection engine.
public static GetHandlerSorter ( ) : IWebHookHandlerSorter
Результат IWebHookHandlerSorter

GetHandlers() публичный статический Метод

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
Результат IEnumerable

GetReceiverConfig() публичный статический Метод

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
Результат IWebHookReceiverConfig

GetReceiverManager() публичный статический Метод

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
Результат IWebHookReceiverManager

GetReceivers() публичный статический Метод

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
Результат IEnumerable

SetReceiverConfig() публичный статический Метод

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.
Результат void