LatencyConsoleExtensions.AddConsoleLatencyDataExporter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddConsoleLatencyDataExporter(IServiceCollection) |
Add latency data exporter for the console. |
AddConsoleLatencyDataExporter(IServiceCollection, IConfigurationSection) |
Add latency data exporter for the console. |
AddConsoleLatencyDataExporter(IServiceCollection, Action<LatencyConsoleOptions>) |
Add latency data exporter for the console. |
AddConsoleLatencyDataExporter(IServiceCollection)
- Source:
- LatencyConsoleExtensions.cs
Add latency data exporter for the console.
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
Parameters
- services
- IServiceCollection
Dependency injection container.
Returns
The value of services
.
Exceptions
services
is null
.
Applies to
AddConsoleLatencyDataExporter(IServiceCollection, IConfigurationSection)
- Source:
- LatencyConsoleExtensions.cs
Add latency data exporter for the console.
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
Parameters
- services
- IServiceCollection
Dependency injection container.
- section
- IConfigurationSection
Configuration of LatencyConsoleOptions.
Returns
The value of services
.
Exceptions
Either services
or section
is null
.
Applies to
AddConsoleLatencyDataExporter(IServiceCollection, Action<LatencyConsoleOptions>)
- Source:
- LatencyConsoleExtensions.cs
Add latency data exporter for the console.
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
Parameters
- services
- IServiceCollection
Dependency injection container.
- configure
- Action<LatencyConsoleOptions>
LatencyConsoleOptions configuration delegate.
Returns
The value of services
.
Exceptions
Either services
or configure
is null
.