HttpDiagnosticProvider 类

定义

提供一种简单的诊断工具,用于跟踪和分析基于 Microsoft HTTP 堆栈构建的应用程序中的 Web 流量。

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
继承
Object Platform::Object IInspectable HttpDiagnosticProvider
属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.Web.Http.Diagnostics.HttpDiagnosticsContract (在 v1.0 中引入)

注解

HttpDiagnosticProvider 的实例从 CreateFromProcessDiagnosticInfo 方法返回。

方法

CreateFromProcessDiagnosticInfo(ProcessDiagnosticInfo)

基于指定的 ProcessDiagnosticInfo 对象创建新的 HttpDiagnosticProvider

Start()

启动 HttpDiagnosticProvider 监视附加的进程目标。

Stop()

阻止 HttpDiagnosticProvider 监视附加的进程目标。

事件

RequestResponseCompleted

订阅 RequestResponseCompleted 事件,接收已提交请求的通知。

RequestSent

订阅 RequestSent 事件以接收已发送请求的通知。

ResponseReceived

订阅 ResponseReceived 事件以接收已收到响应的通知。

适用于