Share via


HttpMetricsEndpointConventionBuilderExtensions.DisableHttpMetrics<TBuilder> Method

Definition

Specifies that HTTP request duration metrics is disabled for an endpoint.

public static TBuilder DisableHttpMetrics<TBuilder> (this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member DisableHttpMetrics : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function DisableHttpMetrics(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder) As TBuilder

Type Parameters

TBuilder

The type of endpoint convention builder.

Parameters

builder
TBuilder

The endpoint convention builder.

Returns

TBuilder

The original convention builder parameter.

Applies to