Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
/ ServerCommon Public archive

Commit

Permalink
Make ApplicationInsightsConfiguration implement IDisposable (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierdecoster authored Dec 4, 2019
1 parent 492ddbb commit f33967c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace NuGet.Services.Logging
{
public sealed class ApplicationInsightsConfiguration
: IDisposable
{
internal ApplicationInsightsConfiguration(
TelemetryConfiguration telemetryConfiguration,
Expand All @@ -32,5 +33,11 @@ internal ApplicationInsightsConfiguration(
/// Allows tweaking Application Insights heartbeat telemetry.
/// </summary>
public DiagnosticsTelemetryModule DiagnosticsTelemetryModule { get; }

public void Dispose()
{
DiagnosticsTelemetryModule.Dispose();
TelemetryConfiguration.Dispose();
}
}
}

0 comments on commit f33967c

Please sign in to comment.