C# Class 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.
Inheritance: Microsoft.AspNet.WebHooks.WebHookReceiver
Show file Open project: aspnet/WebHooks

Public Methods

Method Description
ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task

Protected Methods

Method Description
VerifySignature ( string id, HttpRequestMessage request ) : Task

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

Private Methods

Method Description
GetActions ( HttpRequestMessage request, Newtonsoft.Json.Linq.JObject data ) : IEnumerable
GetSecretLookupTable ( string id, HttpRequestMessage request ) : string>>.Task

Method Details

ReceiveAsync() public method

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
return Task

VerifySignature() protected method

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
return Task