RequestLatencyTelemetryExtensions.AddRequestLatencyTelemetry 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddRequestLatencyTelemetry(IServiceCollection) |
將要求延遲遙測中介軟體新增至指定的 IServiceCollection 。 |
AddRequestLatencyTelemetry(IServiceCollection, IConfigurationSection) |
將要求延遲遙測中介軟體新增至指定的 IServiceCollection 。 |
AddRequestLatencyTelemetry(IServiceCollection, Action<RequestLatencyTelemetryOptions>) |
將要求延遲遙測中介軟體新增至指定的 IServiceCollection 。 |
AddRequestLatencyTelemetry(IServiceCollection)
將要求延遲遙測中介軟體新增至指定的 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。
傳回
已新增要求延遲遙測中介軟體的已提供服務集合。
例外狀況
services
為 null
。
適用於
AddRequestLatencyTelemetry(IServiceCollection, IConfigurationSection)
將要求延遲遙測中介軟體新增至指定的 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。
- section
- IConfigurationSection
傳回
已新增要求延遲遙測中介軟體的已提供服務集合。
例外狀況
services
或 section
是 null
。
適用於
AddRequestLatencyTelemetry(IServiceCollection, Action<RequestLatencyTelemetryOptions>)
將要求延遲遙測中介軟體新增至指定的 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。
- configure
- Action<RequestLatencyTelemetryOptions>
傳回
已新增要求延遲遙測中介軟體的已提供服務集合。
例外狀況
services
或 configure
是 null
。