C# Class Microsoft.AspNet.WebHooks.GitHubWebHookReceiver

Provides an IWebHookReceiver implementation which supports WebHooks generated by GitHub. Set the 'MS_WebHookReceiverSecret_GitHub' application setting to the secret defined in GitHub. The corresponding WebHook URI is of the form 'https://<host>/api/webhooks/incoming/github'. For details about GitHub WebHooks, see https://developer.github.com/webhooks/.
Inheritance: Microsoft.AspNet.WebHooks.WebHookReceiver
Afficher le fichier Open project: aspnet/WebHooks

Méthodes publiques

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

Méthodes protégées

Méthode Description
VerifySignature ( string id, HttpRequestMessage request ) : System.Threading.Tasks.Task

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

Method Details

ReceiveAsync() public méthode

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
Résultat Task

VerifySignature() protected méthode

Verifies that the signature header matches that of the actual body.
protected VerifySignature ( string id, HttpRequestMessage request ) : System.Threading.Tasks.Task
id string
request System.Net.Http.HttpRequestMessage
Résultat System.Threading.Tasks.Task