HttpDiagnosticProvider
HttpDiagnosticProvider
HttpDiagnosticProvider
HttpDiagnosticProvider
Class
Definition
Provides a simple diagnostic facility for tracing and profiling web traffic in applications built on Microsoft’s HTTP stacks.
public : sealed class HttpDiagnosticProvider : IHttpDiagnosticProviderpublic sealed class HttpDiagnosticProvider : IHttpDiagnosticProviderPublic NotInheritable Class HttpDiagnosticProvider Implements IHttpDiagnosticProvider// You can use this class in JavaScript.
- Attributes
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Web.Http.Diagnostics.HttpDiagnosticsContract (introduced v1)
|
Remarks
An instance of HttpDiagnosticProvider is returned from the CreateFromProcessDiagnosticInfo method.
Methods
CreateFromProcessDiagnosticInfo(ProcessDiagnosticInfo) CreateFromProcessDiagnosticInfo(ProcessDiagnosticInfo) CreateFromProcessDiagnosticInfo(ProcessDiagnosticInfo) CreateFromProcessDiagnosticInfo(ProcessDiagnosticInfo)
Creates a new HttpDiagnosticProvider based on the specified ProcessDiagnosticInfo object.
public : static HttpDiagnosticProvider CreateFromProcessDiagnosticInfo(ProcessDiagnosticInfo processDiagnosticInfo)public static HttpDiagnosticProvider CreateFromProcessDiagnosticInfo(ProcessDiagnosticInfo processDiagnosticInfo)Public Static Function CreateFromProcessDiagnosticInfo(processDiagnosticInfo As ProcessDiagnosticInfo) As HttpDiagnosticProvider// You can use this method in JavaScript.
- processDiagnosticInfo
- ProcessDiagnosticInfo ProcessDiagnosticInfo ProcessDiagnosticInfo ProcessDiagnosticInfo
The ProcessDiagnosticInfo that identifies the process to watch.
Start() Start() Start() Start()
Starts the HttpDiagnosticProvider monitoring the attached process target.
public : void Start()public void Start()Public Function Start() As void// You can use this method in JavaScript.
Stop() Stop() Stop() Stop()
Stops the HttpDiagnosticProvider from monitoring the attached process target.
public : void Stop()public void Stop()Public Function Stop() As void// You can use this method in JavaScript.
Events
RequestResponseCompleted RequestResponseCompleted RequestResponseCompleted RequestResponseCompleted
Subscribe to the RequestResponseCompleted event to receive a notification that a request has been submitted.
public : event TypedEventHandler RequestResponseCompleted<HttpDiagnosticProvider, HttpDiagnosticProviderRequestResponseCompletedEventArgs>public event TypedEventHandler RequestResponseCompleted<HttpDiagnosticProvider, HttpDiagnosticProviderRequestResponseCompletedEventArgs>Public Event RequestResponseCompleted<HttpDiagnosticProvider, HttpDiagnosticProviderRequestResponseCompletedEventArgs>// You can use this event in JavaScript.
RequestSent RequestSent RequestSent RequestSent
Subscribe to the RequestSent event to receive a notification that a request has been sent.
public : event TypedEventHandler RequestSent<HttpDiagnosticProvider, HttpDiagnosticProviderRequestSentEventArgs>public event TypedEventHandler RequestSent<HttpDiagnosticProvider, HttpDiagnosticProviderRequestSentEventArgs>Public Event RequestSent<HttpDiagnosticProvider, HttpDiagnosticProviderRequestSentEventArgs>// You can use this event in JavaScript.
ResponseReceived ResponseReceived ResponseReceived ResponseReceived
Subscribe to the ResponseReceived event to receive a notification that a response has been received.
public : event TypedEventHandler ResponseReceived<HttpDiagnosticProvider, HttpDiagnosticProviderResponseReceivedEventArgs>public event TypedEventHandler ResponseReceived<HttpDiagnosticProvider, HttpDiagnosticProviderResponseReceivedEventArgs>Public Event ResponseReceived<HttpDiagnosticProvider, HttpDiagnosticProviderResponseReceivedEventArgs>// You can use this event in JavaScript.