C# 클래스 Microsoft.AspNet.WebHooks.AzureAlertWebHookReceiver

Provides an IWebHookReceiver implementation which supports WebHooks generated by Azure Alert Service. A sample WebHook URI is 'https://<host>/api/webhooks/incoming/azurealert/{id}?code=83699ec7c1d794c0c780e49a5c72972590571fd8'. For security reasons the WebHook URI must be an https URI and contain a 'code' query parameter with the same value as configured in the 'MS_WebHookReceiverSecret_AzureAlert' application setting, optionally using IDs to differentiate between multiple WebHooks, for example 'secret0, id1=secret1, id2=secret2'. The 'code' parameter must be between 32 and 128 characters long. For details about Azure WebHooks, see https://azure.microsoft.com/en-us/documentation/articles/insights-webhooks-alerts/.
상속: Microsoft.AspNet.WebHooks.WebHookReceiver
파일 보기 프로젝트 열기: aspnet/WebHooks

공개 메소드들

메소드 설명
ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task

메소드 상세

ReceiveAsync() 공개 메소드

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
리턴 Task