MetricsBuilderConsoleExtensions.AddDebugConsole(IMetricsBuilder) 方法

定义

启用用于调试的指标的控制台输出。 不建议将其用于生产用途。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ AddDebugConsole(Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ builder);
public static Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder AddDebugConsole (this Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder builder);
static member AddDebugConsole : Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder -> Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder
<Extension()>
Public Function AddDebugConsole (builder As IMetricsBuilder) As IMetricsBuilder

参数

builder
IMetricsBuilder

指标生成器。

返回

用于链接的原始指标生成器。

适用于