共用方式為


LatencyConsoleExtensions.AddConsoleLatencyDataExporter 方法

定義

多載

AddConsoleLatencyDataExporter(IServiceCollection)

新增主控台的延遲數據匯出工具。

AddConsoleLatencyDataExporter(IServiceCollection, IConfigurationSection)

新增主控台的延遲數據匯出工具。

AddConsoleLatencyDataExporter(IServiceCollection, Action<LatencyConsoleOptions>)

新增主控台的延遲數據匯出工具。

AddConsoleLatencyDataExporter(IServiceCollection)

來源:
LatencyConsoleExtensions.cs

新增主控台的延遲數據匯出工具。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddConsoleLatencyDataExporter(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConsoleLatencyDataExporter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddConsoleLatencyDataExporter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConsoleLatencyDataExporter (services As IServiceCollection) As IServiceCollection

參數

services
IServiceCollection

相依性插入容器。

傳回

services 的值。

例外狀況

servicesnull

適用於

AddConsoleLatencyDataExporter(IServiceCollection, IConfigurationSection)

來源:
LatencyConsoleExtensions.cs

新增主控台的延遲數據匯出工具。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddConsoleLatencyDataExporter(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConsoleLatencyDataExporter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddConsoleLatencyDataExporter : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConsoleLatencyDataExporter (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

參數

services
IServiceCollection

相依性插入容器。

傳回

services 的值。

例外狀況

servicessectionnull

適用於

AddConsoleLatencyDataExporter(IServiceCollection, Action<LatencyConsoleOptions>)

來源:
LatencyConsoleExtensions.cs

新增主控台的延遲數據匯出工具。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddConsoleLatencyDataExporter(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Latency::LatencyConsoleOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConsoleLatencyDataExporter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Latency.LatencyConsoleOptions> configure);
static member AddConsoleLatencyDataExporter : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Latency.LatencyConsoleOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConsoleLatencyDataExporter (services As IServiceCollection, configure As Action(Of LatencyConsoleOptions)) As IServiceCollection

參數

services
IServiceCollection

相依性插入容器。

傳回

services 的值。

例外狀況

servicesconfigurenull

適用於