AnalysisMiddleware(RequestDelegate, DiagnosticSource, String) 构造函数

定义

初始化 AnalysisMiddleware 的新实例。

public:
 AnalysisMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, System::Diagnostics::DiagnosticSource ^ diagnosticSource, System::String ^ middlewareName);
public AnalysisMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, System.Diagnostics.DiagnosticSource diagnosticSource, string middlewareName);
new Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * System.Diagnostics.DiagnosticSource * string -> Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware
Public Sub New (next As RequestDelegate, diagnosticSource As DiagnosticSource, middlewareName As String)

参数

next
RequestDelegate

管道中的下一个中间件。

diagnosticSource
DiagnosticSource

DiagnosticSource 其他中间件启动、完成并引发时要记录的 。

middlewareName
String

管道中下一个中间件的名称。 此名称通常是使用“分析”从 Properties 中检索的。NextMiddlewareName“项。

适用于