9 instantiations of TraceSource
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (4)
77var traceSource = new TraceSource("test"); 127var traceSource = new TraceSource("test"); 173var traceSource = new TraceSource("test"); 231var traceSource = new TraceSource("test");
Microsoft.CodeAnalysis.LanguageServer (1)
BrokeredServices\BrokeredServiceTraceListener.cs (1)
24Source = new TraceSource("ServiceBroker", SourceLevels.All);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Remote\InProcRemostHostClient.cs (1)
163var remoteLogger = new TraceSource("InProcRemoteClient")
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLoggerProvider.cs (1)
62var traceSource = new DiagnosticsTraceSource(traceSourceName);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
54private static readonly TraceSource s_traceSource = new TraceSource("System.Security.Cryptography.Xml.SignedXml");
System.Web.Services.Description (1)
System\Web\Services\Diagnostics\TraceUtility.cs (1)
68s_asmxTraceSource = new TraceSource(TraceSourceAsmx);
87 references to TraceSource
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (4)
77var traceSource = new TraceSource("test"); 127var traceSource = new TraceSource("test"); 173var traceSource = new TraceSource("test"); 231var traceSource = new TraceSource("test");
Microsoft.CodeAnalysis.Features (2)
SemanticSearch\AbstractSemanticSearchService.cs (1)
66TraceSource traceSource,
SemanticSearch\ISemanticSearchService.cs (1)
31TraceSource traceSource,
Microsoft.CodeAnalysis.LanguageServer (3)
BrokeredServices\BrokeredServiceBridgeProvider.cs (1)
24private readonly TraceSource _brokeredServiceTraceSource;
BrokeredServices\BrokeredServiceContainer.cs (1)
17public BrokeredServiceContainer(TraceSource traceSource)
BrokeredServices\BrokeredServiceTraceListener.cs (1)
17public TraceSource Source { get; }
Microsoft.CodeAnalysis.Remote.ServiceHub (13)
Services\BrokeredServiceBase.cs (4)
26protected readonly TraceSource TraceLogger; 59var traceSource = (TraceSource?)arguments.ServiceProvider.GetService(typeof(TraceSource));
Services\BrokeredServiceBase.FactoryBase.cs (3)
100var serviceHubTraceSource = (TraceSource?)hostProvidedServices.GetService(typeof(TraceSource));
src\VisualStudio\Core\Def\Telemetry\AbstractWorkspaceTelemetryService.cs (2)
47public void RegisterUnexpectedExceptionLogger(TraceSource logger) 50public void UnregisterUnexpectedExceptionLogger(TraceSource logger)
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (4)
30private static ImmutableArray<TraceSource> s_loggers = []; 69public static void RegisterLogger(TraceSource logger) 77public static void UnregisterLogger(TraceSource logger) 132foreach (var logger in s_loggers)
Microsoft.CodeAnalysis.Workspaces (4)
Telemetry\IWorkspaceTelemetryService.cs (4)
32/// Adds a <see cref="TraceSource"/> used to log unexpected exceptions. 34void RegisterUnexpectedExceptionLogger(TraceSource logger); 37/// Removes a <see cref="TraceSource"/> used to log unexpected exceptions. 39void UnregisterUnexpectedExceptionLogger(TraceSource logger);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Remote\InProcRemostHostClient.cs (4)
81public readonly TraceSource TraceSource; 84public ServiceProvider(TraceSource traceSource, RemoteHostTestData testData) 92if (typeof(TraceSource) == serviceType) 163var remoteLogger = new TraceSource("InProcRemoteClient")
Microsoft.Extensions.Logging.TraceSource (22)
TraceSourceFactoryExtensions.cs (8)
18/// Adds a logger that writes to <see cref="System.Diagnostics.TraceSource"/>. 38/// Adds a logger that writes to <see cref="System.Diagnostics.TraceSource"/>. 56/// Adds a logger that writes to <see cref="System.Diagnostics.TraceSource"/>. 76/// Adds a logger that writes to <see cref="System.Diagnostics.TraceSource"/>. 94/// Adds a logger that writes to <see cref="System.Diagnostics.TraceSource"/>. 110/// Adds a logger that writes to <see cref="System.Diagnostics.TraceSource"/>. 129/// Adds a logger that writes to <see cref="System.Diagnostics.TraceSource"/>. 147/// Adds a logger that writes to <see cref="System.Diagnostics.TraceSource"/>.
TraceSourceLogger.cs (3)
6using DiagnosticsTraceSource = System.Diagnostics.TraceSource; 15private readonly DiagnosticsTraceSource _traceSource; 21public TraceSourceLogger(DiagnosticsTraceSource traceSource)
TraceSourceLoggerProvider.cs (11)
7using DiagnosticsTraceSource = System.Diagnostics.TraceSource; 20private readonly ConcurrentDictionary<string, DiagnosticsTraceSource> _sources = new ConcurrentDictionary<string, DiagnosticsTraceSource>(StringComparer.OrdinalIgnoreCase); 56private DiagnosticsTraceSource GetOrAddTraceSource(string name) => 57_sources.TryGetValue(name, out DiagnosticsTraceSource? source) ? source : 60private DiagnosticsTraceSource InitializeTraceSource(string traceSourceName) 62var traceSource = new DiagnosticsTraceSource(traceSourceName); 81DiagnosticsTraceSource parentTraceSource = GetOrAddTraceSource(parentSourceName); 88DiagnosticsTraceSource parentTraceSource = GetOrAddTraceSource(parentSourceName); 102private static bool HasDefaultListeners(DiagnosticsTraceSource traceSource) 107private static bool HasDefaultSwitch(DiagnosticsTraceSource traceSource)
Microsoft.VisualStudio.LanguageServices (14)
LanguageClient\LogHubLspLogger.cs (2)
17private readonly TraceSource _traceSource; 20public LogHubLspLogger(TraceConfiguration configuration, TraceSource traceSource)
LanguageClient\VisualStudioLogHubLoggerFactory.cs (1)
56var traceSource = await configuration.RegisterLogSourceAsync(logId, logOptions, cancellationToken).ConfigureAwait(false);
RoslynActivityLogger.cs (5)
15/// Let people to inject <see cref="TraceSource"/> to monitor Roslyn activity 27public static void SetLogger(TraceSource traceSource) 38public static void RemoveLogger(TraceSource traceSource) 55public readonly TraceSource TraceSource; 57public TraceSourceLogger(TraceSource traceSource)
Telemetry\AbstractWorkspaceTelemetryService.cs (2)
47public void RegisterUnexpectedExceptionLogger(TraceSource logger) 50public void UnregisterUnexpectedExceptionLogger(TraceSource logger)
Watson\FaultReporter.cs (4)
30private static ImmutableArray<TraceSource> s_loggers = []; 69public static void RegisterLogger(TraceSource logger) 77public static void UnregisterLogger(TraceSource logger) 132foreach (var logger in s_loggers)
netstandard (1)
netstandard.cs (1)
710[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.TraceSource))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
548[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.TraceSource))]
System.Configuration.ConfigurationManager (3)
System\Diagnostics\TraceConfiguration.cs (3)
12/// to <seealso cref="System.Diagnostics.TraceSource"/> and related classes. 21TraceSource.Initializing += InitializingTraceSource; 33TraceSource traceSource = e.TraceSource;
System.Diagnostics.TraceSource (12)
System\Diagnostics\InitializingTraceSourceEventArgs.cs (3)
7/// Provides data for the <see cref="TraceSource.Initializing"/> event. 11public InitializingTraceSourceEventArgs(TraceSource traceSource) 16public TraceSource TraceSource { get; }
System\Diagnostics\Trace.cs (2)
165/// Occurs when a <see cref="TraceSource"/> needs to be refreshed from configuration. 178TraceSource.RefreshAll();
System\Diagnostics\TraceSource.cs (7)
15private static readonly List<WeakReference<TraceSource>> s_tracesources = new List<WeakReference<TraceSource>>(); 39s_tracesources.Add(new WeakReference<TraceSource>(this)); 49List<WeakReference<TraceSource>> buffer = new List<WeakReference<TraceSource>>(s_tracesources.Count); 170if (s_tracesources[i].TryGetTarget(out TraceSource? tracesource)) 500/// Occurs when a <see cref="TraceSource"/> needs to be initialized.
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
54private static readonly TraceSource s_traceSource = new TraceSource("System.Security.Cryptography.Xml.SignedXml");
System.Web.Services.Description (3)
System\Web\Services\Diagnostics\TraceUtility.cs (3)
19private static TraceSource s_asmxTraceSource; 43internal static TraceSource Asmx 109private static bool ValidateSettings(TraceSource traceSource, TraceEventType traceLevel)