C# 클래스 StackExchange.Profiling.MiniProfilerMessageHandler

Extension to HttpClientHandler to provide profiling across WebAPI web requests.
상속: System.Net.Http.HttpClientHandler
파일 보기 프로젝트 열기: JSkimming/MiniProfiler.WebAPI

공개 메소드들

메소드 설명
MiniProfilerMessageHandler ( StackExchange.Profiling.MiniProfiler profiler = null, bool addStep = true, string stepPrefix = "WebAPI :" ) : System

Constructs the MiniProfilerMessageHandler.

보호된 메소드들

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

Adds profiling to the request.

비공개 메소드들

메소드 설명
AddRemoteProfilerResults ( HttpResponseMessage response, StackExchange.Profiling.MiniProfiler profiler, decimal newStartMilliseconds ) : HttpResponseMessage

Adds the profiling results fro the response to the supplied profiler.

메소드 상세

MiniProfilerMessageHandler() 공개 메소드

Constructs the MiniProfilerMessageHandler.
public MiniProfilerMessageHandler ( StackExchange.Profiling.MiniProfiler profiler = null, bool addStep = true, string stepPrefix = "WebAPI :" ) : System
profiler StackExchange.Profiling.MiniProfiler The profiler, if null the profiler is used.
addStep bool If true a is added for the request.
stepPrefix string The prefix for the name, used if is true.
리턴 System

SendAsync() 보호된 메소드

Adds profiling to the request.
The was null.
protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage The HTTP request message.
cancellationToken System.Threading.CancellationToken A cancellation token to cancel the operation.
리턴 Task