HttpDiagnosticProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a simple diagnostic facility for tracing and profiling web traffic in applications built on Microsoft’s HTTP stacks.
public ref class HttpDiagnosticProvider sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Web.Http.Diagnostics.HttpDiagnosticsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpDiagnosticProvider final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Web.Http.Diagnostics.HttpDiagnosticsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpDiagnosticProvider
Public NotInheritable Class HttpDiagnosticProvider
- Inheritance
- Attributes
Windows requirements
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
|
API contract |
Windows.Web.Http.Diagnostics.HttpDiagnosticsContract (introduced in v1.0)
|
Remarks
An instance of HttpDiagnosticProvider is returned from the CreateFromProcessDiagnosticInfo method.
Methods
CreateFromProcessDiagnosticInfo(ProcessDiagnosticInfo) |
Creates a new HttpDiagnosticProvider based on the specified ProcessDiagnosticInfo object. |
Start() |
Starts the HttpDiagnosticProvider monitoring the attached process target. |
Stop() |
Stops the HttpDiagnosticProvider from monitoring the attached process target. |
Events
RequestResponseCompleted |
Subscribe to the RequestResponseCompleted event to receive a notification that a request has been submitted. |
RequestSent |
Subscribe to the RequestSent event to receive a notification that a request has been sent. |
ResponseReceived |
Subscribe to the ResponseReceived event to receive a notification that a response has been received. |