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
파일 보기 프로젝트 열기: aspnet/WebHooks

공개 메소드들

메소드 설명
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