C# Class Microsoft.AspNet.WebHooks.TrelloWebHookReceiver

Provides an IWebHookReceiver implementation which supports WebHooks generated by Trello. Set the /MS_WebHookReceiverSecret_Trello/ application setting to the secret defined in Trello. The corresponding WebHook URI is of the form 'https://<host>/api/webhooks/incoming/trello'. For details about Trello WebHooks, see https://trello.com/docs/gettingstarted/webhooks.html.
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 ( HttpRequestMessage request, string id ) : Task

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

Private Methods

Method Description
WebHookVerification ( HttpRequestMessage request, string id ) : 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 ( HttpRequestMessage request, string id ) : Task
request System.Net.Http.HttpRequestMessage
id string
return Task