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

Provides an IWebHookReceiver implementation which supports WebHooks generated by Pusher. The 'MS_WebHookReceiverSecret_Pusher' application setting contains a semicolon separated list of values of the form 'appKey_appSecret' containing one or more application key/secret pairs defined in Pusher. An example with two key/secret pairs is '47e5a8cd8f6bb492252a_42fef23870926753d345; ba3af8f38f3be37d476a_9eb6d047bb5465a43cb2'. The corresponding WebHook URI is of the form 'https://<host>/api/webhooks/incoming/pusher/{id}'. For details about Pusher WebHooks, see https://pusher.com/docs/webhooks.
Наследование: Microsoft.AspNet.WebHooks.WebHookReceiver
Показать файл Открыть проект

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

Метод Описание
ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task

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

Метод Описание
VerifySignature ( string id, HttpRequestMessage request ) : Task

Verifies that the signature header matches that of the actual body.

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

Метод Описание
GetActions ( HttpRequestMessage request, Newtonsoft.Json.Linq.JObject data ) : IEnumerable
GetSecretLookupTable ( string id, HttpRequestMessage request ) : string>>.Task

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

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

public ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task
id string
context System.Web.Http.Controllers.HttpRequestContext
request System.Net.Http.HttpRequestMessage
Результат Task

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

Verifies that the signature header matches that of the actual body.
protected VerifySignature ( string id, HttpRequestMessage request ) : Task
id string
request System.Net.Http.HttpRequestMessage
Результат Task