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

Show file Open project: AppMetrics/AppMetrics

Public Methods

Method 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 method

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

ThrowIfMetricsNotRegistered() public static method

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