C# Class App.Metrics.Extensions.DependencyInjection.Internal.AppMetricsServicesHelper

Afficher le fichier Open project: AppMetrics/AppMetrics

Méthodes publiques

Méthode Description
ThrowIfMetricsNotRegistered ( IServiceCollection services ) : void

Throws InvalidOperationException when MetricsMarkerService is not present in the list of services.

ThrowIfMetricsNotRegistered ( IServiceProvider services ) : void

Throws InvalidOperationException when MetricsMarkerService is not present in the list of services.

Method Details

ThrowIfMetricsNotRegistered() public static méthode

Throws InvalidOperationException when MetricsMarkerService is not present in the list of services.
public static ThrowIfMetricsNotRegistered ( IServiceCollection services ) : void
services IServiceCollection The list of services.
Résultat void

ThrowIfMetricsNotRegistered() public static méthode

Throws InvalidOperationException when MetricsMarkerService is not present in the list of services.
public static ThrowIfMetricsNotRegistered ( IServiceProvider services ) : void
services IServiceProvider The list of services.
Résultat void