C# Class Microsoft.AspNet.WebHooks.MyGetWebHookHandlerBase

Provides a base IWebHookHandler implementation which can be used to for handling MyGet WebHook using strongly-typed payloads. For details about MyGet WebHooks, see http://docs.myget.org/docs/reference/webhooks.
Inheritance: WebHookHandler
Show file Open project: aspnet/WebHooks

Public Methods

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

Executes the incoming WebHook request.

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

Executes the incoming WebHook request.

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

Executes the incoming WebHook request.

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

Executes the incoming WebHook request.

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

Executes the incoming WebHook request.

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

Executes the incoming WebHook request.

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

Executes the incoming WebHook request.

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

Executes the incoming WebHook request.

ExecuteUnknownPayloadAsync ( string receiver, WebHookHandlerContext context, Newtonsoft.Json.Linq.JObject payload ) : System.Threading.Tasks.Task

Executes the incoming WebHook request for an unknown payload.

Protected Methods

Method Description
MyGetWebHookHandlerBase ( ) : System

Initializes a new instance of the MyGetWebHookHandlerBase class.

Method Details

ExecuteAsync() public method

public ExecuteAsync ( string receiver, WebHookHandlerContext context ) : System.Threading.Tasks.Task
receiver string
context WebHookHandlerContext
return System.Threading.Tasks.Task

ExecuteAsync() public method

Executes the incoming WebHook request.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, BuildFinishedPayload payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Microsoft.AspNet.WebHooks.Payloads.BuildFinishedPayload Strong-typed WebHook payload.
return System.Threading.Tasks.Task

ExecuteAsync() public method

Executes the incoming WebHook request.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, BuildQueuedPayload payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Microsoft.AspNet.WebHooks.Payloads.BuildQueuedPayload Strong-typed WebHook payload.
return System.Threading.Tasks.Task

ExecuteAsync() public method

Executes the incoming WebHook request.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, BuildStartedPayload payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Microsoft.AspNet.WebHooks.Payloads.BuildStartedPayload Strong-typed WebHook payload.
return System.Threading.Tasks.Task

ExecuteAsync() public method

Executes the incoming WebHook request.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, PackageAddedPayload payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Microsoft.AspNet.WebHooks.Payloads.PackageAddedPayload Strong-typed WebHook payload.
return System.Threading.Tasks.Task

ExecuteAsync() public method

Executes the incoming WebHook request.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, PackageDeletedPayload payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Microsoft.AspNet.WebHooks.Payloads.PackageDeletedPayload Strong-typed WebHook payload.
return System.Threading.Tasks.Task

ExecuteAsync() public method

Executes the incoming WebHook request.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, PackageListedPayload payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Microsoft.AspNet.WebHooks.Payloads.PackageListedPayload Strong-typed WebHook payload.
return System.Threading.Tasks.Task

ExecuteAsync() public method

Executes the incoming WebHook request.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, PackagePinnedPayload payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Microsoft.AspNet.WebHooks.Payloads.PackagePinnedPayload Strong-typed WebHook payload.
return System.Threading.Tasks.Task

ExecuteAsync() public method

Executes the incoming WebHook request.
public ExecuteAsync ( string receiver, WebHookHandlerContext context, PackagePushedPayload payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Microsoft.AspNet.WebHooks.Payloads.PackagePushedPayload Strong-typed WebHook payload.
return System.Threading.Tasks.Task

ExecuteUnknownPayloadAsync() public method

Executes the incoming WebHook request for an unknown payload.
public ExecuteUnknownPayloadAsync ( string receiver, WebHookHandlerContext context, Newtonsoft.Json.Linq.JObject payload ) : System.Threading.Tasks.Task
receiver string The name of the which processed the incoming WebHook. The /// receiver can for example be dropbox or github.
context WebHookHandlerContext Provides context for the for further processing the incoming WebHook.
payload Newtonsoft.Json.Linq.JObject Strong-typed WebHook payload.
return System.Threading.Tasks.Task

MyGetWebHookHandlerBase() protected method

Initializes a new instance of the MyGetWebHookHandlerBase class.
protected MyGetWebHookHandlerBase ( ) : System
return System