Class DiagnosticsCommonServiceCollectionExtensions
Inheritance
System.Object
DiagnosticsCommonServiceCollectionExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Copper.Diagnostics.Common.dll
Syntax
public static class DiagnosticsCommonServiceCollectionExtensions
Methods
View SourceAddCopperConfiguredApplicationInsights(IServiceCollection, String)
Adds application insights configured for Copper.
Declaration
public static void AddCopperConfiguredApplicationInsights(this IServiceCollection serviceCollection, string instrumentationKey = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | serviceCollection | The service collection. |
| System.String | instrumentationKey | The instrumentation key. |