C# Класс Microsoft.AspNet.WebHooks.WebHookQueueHandler

Provides an abstract IWebHookHandler implementation which can be used to enqueue WebHooks for processing outside their immediate HTTP request/response context. This can for example be used to process WebHooks by a separate agent or at another time. It can also be used for WebHooks where the processing take longer than permitted by the immediate HTTP request/response context.
Наследование: WebHookHandler
Показать файл Открыть проект

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

Метод Описание
EnqueueAsync ( WebHookQueueContext context ) : System.Threading.Tasks.Task

Enqueues an incoming WebHook for processing outside its immediate HTTP request/response context. Any exception thrown will result in an HTTP error response being returned to the party generating the WebHook.

ExecuteAsync ( string receiver, WebHookHandlerContext context ) : System.Threading.Tasks.Task

Защищенные методы

Метод Описание
WebHookQueueHandler ( ) : System

Initializes a new instance of the WebHookQueueHandler class with a default WebHookHandler.Order of 50 and by default accepts WebHooks from all receivers. To limit which receiver this IWebHookHandler will receive WebHook requests from, set the WebHookHandler.Receiver property to the name of that receiver.

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

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

Enqueues an incoming WebHook for processing outside its immediate HTTP request/response context. Any exception thrown will result in an HTTP error response being returned to the party generating the WebHook.
public abstract EnqueueAsync ( WebHookQueueContext context ) : System.Threading.Tasks.Task
context WebHookQueueContext The for the WebHook to be enqueued.
Результат System.Threading.Tasks.Task

ExecuteAsync() публичный Метод

public ExecuteAsync ( string receiver, WebHookHandlerContext context ) : System.Threading.Tasks.Task
receiver string
context WebHookHandlerContext
Результат System.Threading.Tasks.Task

WebHookQueueHandler() защищенный Метод

Initializes a new instance of the WebHookQueueHandler class with a default WebHookHandler.Order of 50 and by default accepts WebHooks from all receivers. To limit which receiver this IWebHookHandler will receive WebHook requests from, set the WebHookHandler.Receiver property to the name of that receiver.
protected WebHookQueueHandler ( ) : System
Результат System