共用方式為


WebHooksConfiguration.UseReceiver<T> Method

Definition

Adds the specified Microsoft.AspNet.WebHooks.WebHookReceiver to the request pipeline. Once a receiver is registered, any WebHook functions with a route starting with that receiver name will be authenticated by that receiver.

public void UseReceiver<T> () where T : Microsoft.AspNet.WebHooks.WebHookReceiver;
member this.UseReceiver : unit -> unit (requires 'T :> Microsoft.AspNet.WebHooks.WebHookReceiver)
Public Sub UseReceiver(Of T As WebHookReceiver) ()

Type Parameters

T

The Type of Microsoft.AspNet.WebHooks.WebHookReceiver to add.

Applies to