Remove "Module" in class name. Change class to internal.

This commit is contained in:
xiang17 2021-05-06 11:05:49 -07:00
Родитель 554a30db62
Коммит 42fa5ff83f
5 изменённых файлов: 8 добавлений и 17 удалений

Просмотреть файл

@ -1,7 +1,4 @@
Microsoft.ApplicationInsights.Channel.IAsyncFlushable
Microsoft.ApplicationInsights.Channel.IAsyncFlushable.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
Microsoft.ApplicationInsights.Channel.InMemoryChannel.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule.Dispose() -> void
Microsoft.ApplicationInsights.TelemetryClient.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
static Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule.EnsureInitialized() -> void
Microsoft.ApplicationInsights.TelemetryClient.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>

Просмотреть файл

@ -1,7 +1,4 @@
Microsoft.ApplicationInsights.Channel.IAsyncFlushable
Microsoft.ApplicationInsights.Channel.IAsyncFlushable.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
Microsoft.ApplicationInsights.Channel.InMemoryChannel.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule.Dispose() -> void
Microsoft.ApplicationInsights.TelemetryClient.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
static Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule.EnsureInitialized() -> void
Microsoft.ApplicationInsights.TelemetryClient.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>

Просмотреть файл

@ -1,7 +1,4 @@
Microsoft.ApplicationInsights.Channel.IAsyncFlushable
Microsoft.ApplicationInsights.Channel.IAsyncFlushable.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
Microsoft.ApplicationInsights.Channel.InMemoryChannel.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule.Dispose() -> void
Microsoft.ApplicationInsights.TelemetryClient.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>
static Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsModule.EnsureInitialized() -> void
Microsoft.ApplicationInsights.TelemetryClient.FlushAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>

Просмотреть файл

@ -6,18 +6,18 @@
/// Self diagnostics class captures the EventSource events sent by Application Insights
/// modules and writes them to local file for internal troubleshooting.
/// </summary>
public class SelfDiagnosticsModule : IDisposable
internal class SelfDiagnostics : IDisposable
{
/// <summary>
/// Long-living object that hold relevant resources.
/// </summary>
private static readonly SelfDiagnosticsModule Instance = new SelfDiagnosticsModule();
private static readonly SelfDiagnostics Instance = new SelfDiagnostics();
// Long-living object that holds a refresher which checks whether the configuration file was updated
// every 10 seconds.
// private readonly SelfDiagnosticsConfigRefresher configRefresher;
static SelfDiagnosticsModule()
static SelfDiagnostics()
{
AppDomain.CurrentDomain.ProcessExit += (sender, eventArgs) =>
{
@ -25,7 +25,7 @@
};
}
private SelfDiagnosticsModule()
private SelfDiagnostics()
{
// this.configRefresher = new SelfDiagnosticsConfigRefresher();
}

Просмотреть файл

@ -64,7 +64,7 @@
Activity.ForceDefaultIdFormat = true;
}
});
SelfDiagnosticsModule.EnsureInitialized();
SelfDiagnostics.EnsureInitialized();
}
/// <summary>