共用方式為


RequestLatencyTelemetryExtensions.AddRequestLatencyTelemetry 方法

定義

多載

AddRequestLatencyTelemetry(IServiceCollection)

將要求延遲遙測中介軟體新增至指定的 IServiceCollection

AddRequestLatencyTelemetry(IServiceCollection, IConfigurationSection)

將要求延遲遙測中介軟體新增至指定的 IServiceCollection

AddRequestLatencyTelemetry(IServiceCollection, Action<RequestLatencyTelemetryOptions>)

將要求延遲遙測中介軟體新增至指定的 IServiceCollection

AddRequestLatencyTelemetry(IServiceCollection)

來源:
RequestLatencyTelemetryExtensions.cs

將要求延遲遙測中介軟體新增至指定的 IServiceCollection

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRequestLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestLatencyTelemetry (services As IServiceCollection) As IServiceCollection

參數

services
IServiceCollection

要新增的目標 IServiceCollection

傳回

已新增要求延遲遙測中介軟體的已提供服務集合。

例外狀況

servicesnull

適用於

AddRequestLatencyTelemetry(IServiceCollection, IConfigurationSection)

來源:
RequestLatencyTelemetryExtensions.cs

將要求延遲遙測中介軟體新增至指定的 IServiceCollection

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddRequestLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestLatencyTelemetry (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

參數

services
IServiceCollection

要新增的目標 IServiceCollection

傳回

已新增要求延遲遙測中介軟體的已提供服務集合。

例外狀況

servicessectionnull

適用於

AddRequestLatencyTelemetry(IServiceCollection, Action<RequestLatencyTelemetryOptions>)

來源:
RequestLatencyTelemetryExtensions.cs

將要求延遲遙測中介軟體新增至指定的 IServiceCollection

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Telemetry.RequestLatencyTelemetryOptions> configure);
static member AddRequestLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Telemetry.RequestLatencyTelemetryOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestLatencyTelemetry (services As IServiceCollection, configure As Action(Of RequestLatencyTelemetryOptions)) As IServiceCollection

參數

services
IServiceCollection

要新增的目標 IServiceCollection

傳回

已新增要求延遲遙測中介軟體的已提供服務集合。

例外狀況

servicesconfigurenull

適用於