Dela via


AnalysisMiddleware(RequestDelegate, DiagnosticSource, String) Constructor

Definition

Initializes a new instance of 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)

Parameters

next
RequestDelegate

The next middleware in the pipeline.

diagnosticSource
DiagnosticSource

The DiagnosticSource to log when other middleware starts, finishes and throws.

middlewareName
String

The name of the next middleware in the pipeline. This name is typically retrieved from Properties using the "analysis.NextMiddlewareName" key.

Applies to