Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit f33967c

Browse files
Make ApplicationInsightsConfiguration implement IDisposable (#323)
1 parent 492ddbb commit f33967c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/NuGet.Services.Logging/ApplicationInsightsConfiguration.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace NuGet.Services.Logging
99
{
1010
public sealed class ApplicationInsightsConfiguration
11+
: IDisposable
1112
{
1213
internal ApplicationInsightsConfiguration(
1314
TelemetryConfiguration telemetryConfiguration,
@@ -32,5 +33,11 @@ internal ApplicationInsightsConfiguration(
3233
/// Allows tweaking Application Insights heartbeat telemetry.
3334
/// </summary>
3435
public DiagnosticsTelemetryModule DiagnosticsTelemetryModule { get; }
36+
37+
public void Dispose()
38+
{
39+
DiagnosticsTelemetryModule.Dispose();
40+
TelemetryConfiguration.Dispose();
41+
}
3542
}
3643
}

0 commit comments

Comments
 (0)