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

Provides a base implementation of IWebHookSender that defines the default format for HTTP requests sent as WebHooks.
상속: IWebHookSender, IDisposable
파일 보기 프로젝트 열기: aspnet/WebHooks 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
SendWebHookWorkItemsAsync ( IEnumerable workItems ) : System.Threading.Tasks.Task

보호된 메소드들

메소드 설명
CreateWebHookRequestBody ( WebHookWorkItem workItem ) : Newtonsoft.Json.Linq.JObject

Creates a JObject used as the HttpRequestMessage entity body for a WebHook.

Dispose ( bool disposing ) : void

Releases the unmanaged resources and optionally releases the managed resources.

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

Adds a SHA 256 signature to the body and adds it to the request as an HTTP header to the HttpRequestMessage along with the entity body.

WebHookSender ( ILogger logger ) : System

Initializes a new instance of the WebHookSender class.

비공개 메소드들

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

메소드 상세

CreateWebHookRequestBody() 보호된 메소드

Creates a JObject used as the HttpRequestMessage entity body for a WebHook.
protected CreateWebHookRequestBody ( WebHookWorkItem workItem ) : Newtonsoft.Json.Linq.JObject
workItem WebHookWorkItem The representing the data to be sent.
리턴 Newtonsoft.Json.Linq.JObject

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

SendWebHookWorkItemsAsync() 공개 추상적인 메소드

public abstract SendWebHookWorkItemsAsync ( IEnumerable workItems ) : System.Threading.Tasks.Task
workItems IEnumerable
리턴 System.Threading.Tasks.Task

SignWebHookRequest() 보호된 메소드

Adds a SHA 256 signature to the body and adds it to the request as an HTTP header to the HttpRequestMessage along with the entity body.
protected SignWebHookRequest ( WebHookWorkItem workItem, HttpRequestMessage request, Newtonsoft.Json.Linq.JObject body ) : void
workItem WebHookWorkItem The current .
request System.Net.Http.HttpRequestMessage The request to add the signature to.
body Newtonsoft.Json.Linq.JObject The body to sign and add to the request.
리턴 void

WebHookSender() 보호된 메소드

Initializes a new instance of the WebHookSender class.
protected WebHookSender ( ILogger logger ) : System
logger ILogger
리턴 System