C# Class Microsoft.AspNet.WebHooks.DropboxWebHookReceiver

Provides an IWebHookReceiver implementation which supports WebHooks generated by Dropbox. Set the 'MS_WebHookReceiverSecret_Dropbox' application setting to the application secrets, optionally using IDs to differentiate between multiple WebHooks, for example 'secret0, id1=secret1, id2=secret2'. The corresponding WebHook URI is of the form 'https://<host>/api/webhooks/incoming/dropbox/{id}'. For details about Dropbox WebHooks, see https://www.dropbox.com/developers/webhooks/docs.
Inheritance: Microsoft.AspNet.WebHooks.WebHookReceiver
显示文件 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