C# Class MyGetReceiver.WebHooks.MyGetWebHookHandler

This handler processes WebHooks from MyGet and leverages the MyGetWebHookHandlerBase base handler. For details about MyGet WebHooks, please see http://docs.myget.org/docs/reference/webhooks.
Inheritance: Microsoft.AspNet.WebHooks.MyGetWebHookHandlerBase
ファイルを表示 Open project: aspnet/WebHooks

Public Methods

Method Description
ExecuteAsync ( string receiver, WebHookHandlerContext context, PackageAddedPayload payload ) : System.Threading.Tasks.Task

We use MyGetWebHookHandlerBase so just have to override the methods we want to process WebHooks for. This one processes the PackageAddedPayload WebHook.

ExecuteAsync ( string receiver, WebHookHandlerContext context, PackageDeletedPayload payload ) : System.Threading.Tasks.Task

This one processes the PackageDeletedPayload WebHook.

Method Details

ExecuteAsync() public method

We use MyGetWebHookHandlerBase so just have to override the methods we want to process WebHooks for. This one processes the PackageAddedPayload WebHook.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, PackageAddedPayload payload ) : System.Threading.Tasks.Task
receiver string
context Microsoft.AspNet.WebHooks.WebHookHandlerContext
payload Microsoft.AspNet.WebHooks.Payloads.PackageAddedPayload
return System.Threading.Tasks.Task

ExecuteAsync() public method

This one processes the PackageDeletedPayload WebHook.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, PackageDeletedPayload payload ) : System.Threading.Tasks.Task
receiver string
context Microsoft.AspNet.WebHooks.WebHookHandlerContext
payload Microsoft.AspNet.WebHooks.Payloads.PackageDeletedPayload
return System.Threading.Tasks.Task