C# 클래스 CustomSender.WebHooks.MyWebHookSender

This class provide an example of how to customize the shape of custom WebHook requests sent to WebHook subscribers.
상속: Microsoft.AspNet.WebHooks.DataflowWebHookSender
파일 보기 프로젝트 열기: aspnet/WebHooks

공개 메소드들

메소드 설명
MyWebHookSender ( ILogger logger ) : System.Net.Http

보호된 메소드들

메소드 설명
CreateWebHookRequest ( WebHookWorkItem workItem ) : HttpRequestMessage

By overriding this method you can shape the WebHook request URI exactly as you want, both in terms of HTTP headers and HTTP body.

CreateWebHookRequestBody ( WebHookWorkItem workItem ) : Newtonsoft.Json.Linq.JObject

By overriding this method you can control just the WebHook request body. The rest of the WebHook request follows the default model including the HTTP header containing a signature of the body.

SignWebHookRequest ( WebHookWorkItem workItem, HttpRequestMessage request, Newtonsoft.Json.Linq.JObject body ) : void

By overriding this method you can control just the WebHook header containing a signature of the body.

메소드 상세

CreateWebHookRequest() 보호된 메소드

By overriding this method you can shape the WebHook request URI exactly as you want, both in terms of HTTP headers and HTTP body.
protected CreateWebHookRequest ( WebHookWorkItem workItem ) : HttpRequestMessage
workItem Microsoft.AspNet.WebHooks.WebHookWorkItem
리턴 System.Net.Http.HttpRequestMessage

CreateWebHookRequestBody() 보호된 메소드

By overriding this method you can control just the WebHook request body. The rest of the WebHook request follows the default model including the HTTP header containing a signature of the body.
protected CreateWebHookRequestBody ( WebHookWorkItem workItem ) : Newtonsoft.Json.Linq.JObject
workItem Microsoft.AspNet.WebHooks.WebHookWorkItem
리턴 Newtonsoft.Json.Linq.JObject

MyWebHookSender() 공개 메소드

public MyWebHookSender ( ILogger logger ) : System.Net.Http
logger ILogger
리턴 System.Net.Http

SignWebHookRequest() 보호된 메소드

By overriding this method you can control just the WebHook header containing a signature of the body.
protected SignWebHookRequest ( WebHookWorkItem workItem, HttpRequestMessage request, Newtonsoft.Json.Linq.JObject body ) : void
workItem Microsoft.AspNet.WebHooks.WebHookWorkItem
request System.Net.Http.HttpRequestMessage
body Newtonsoft.Json.Linq.JObject
리턴 void