LatencyConsoleExtensions.AddConsoleLatencyDataExporter 方法

定义

重载

AddConsoleLatencyDataExporter(IServiceCollection)

为控制台添加延迟数据导出程序。

AddConsoleLatencyDataExporter(IServiceCollection, IConfigurationSection)

为控制台添加延迟数据导出程序。

AddConsoleLatencyDataExporter(IServiceCollection, Action<LatencyConsoleOptions>)

为控制台添加延迟数据导出程序。

AddConsoleLatencyDataExporter(IServiceCollection)

Source:
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)

Source:
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>)

Source:
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

适用于