WebHooksConfiguration.UseReceiver<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.