C# 클래스 NContext.Extensions.AspNet.WebApi.Handlers.ExecutionContextMessageHandler

Defines a message handler which creates an identifier for the incoming ExecutionContext flow. This can be later used across asyncronous operations and threads to uniquely identify the execution context. This may be useful if you wish to cache data per-request (ie. HttpContext.Current.Items). Since a single request/response may execute across multiple threads we need to identify the data somehow. This is similar to how Thread.CurrentPrincipal and Culture work.
상속: System.Net.Http.DelegatingHandler
파일 보기 프로젝트 열기: PowerDMS/NContext

보호된 메소드들

메소드 설명
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

비공개 메소드들

메소드 설명
SetExecutionContextId ( System.Guid executionContextId ) : void

메소드 상세

SendAsync() 보호된 메소드

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.
protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage The HTTP request message to send to the server.
cancellationToken System.Threading.CancellationToken A cancellation token to cancel operation.
리턴 Task