253 references to Trace
BuildValidator (1)
Program.cs (1)
33
System.Diagnostics.
Trace
.Listeners.Clear();
csc (2)
src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));
http2cat (7)
Program.cs (7)
40
Trace
.Assert(headersFrame.Type == Http2FrameType.HEADERS, headersFrame.Type.ToString());
41
Trace
.Assert((headersFrame.Flags & (byte)Http2HeadersFrameFlags.END_HEADERS) != 0);
42
Trace
.Assert((headersFrame.Flags & (byte)Http2HeadersFrameFlags.END_STREAM) == 0);
55
Trace
.Assert(dataFrame.Type == Http2FrameType.DATA);
56
Trace
.Assert((dataFrame.Flags & (byte)Http2DataFrameFlags.END_STREAM) == 0);
64
Trace
.Assert(trailersFrame.Type == Http2FrameType.HEADERS);
65
Trace
.Assert((trailersFrame.Flags & (byte)Http2DataFrameFlags.END_STREAM) == 1);
Microsoft.Arcade.Common (2)
ExponentialRetry.cs (2)
46
Trace
.TraceInformation(attempt);
59
Trace
.TraceInformation($"{attempt} failed. Waiting {delay} before next try.");
Microsoft.Cci.Extensions (5)
HostEnvironment.cs (4)
562
Trace
.TraceError(format, arguments);
566
Trace
.TraceWarning(format, arguments);
644
Trace
.TraceWarning("Found '{0}' with version '{1}' instead of '{2}'.",
653
Trace
.TraceWarning("Found '{0}' with PublicKeyToken '{1}' instead of '{2}'.",
Mappings\ElementMapping.cs (1)
60
Trace
.TraceWarning("Duplicate element {0} in set!", element.ToString());
Microsoft.CodeAnalysis.EditorFeatures (2)
Suggestions\SuggestedActionsSource.cs (1)
256
Trace
.WriteLine("given range is not current");
Suggestions\SuggestedActionsSource_Async.cs (1)
243
Trace
.WriteLine("given range is not current");
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
180
var didEnqueue = _queue.TryEnqueue((item,
Trace
.CorrelationManager.ActivityId, combinedCancellationToken));
239
Trace
.CorrelationManager.ActivityId = activityId;
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\BrokeredServiceBase.cs (2)
50
Trace
.Listeners.Clear();
51
Trace
.Listeners.Add(new ThrowingTraceListener());
Microsoft.CodeAnalysis.Test.Utilities (2)
ModuleInitializer.cs (2)
20
Trace
.Listeners.Clear();
21
Trace
.Listeners.Add(new ThrowingTraceListener());
Microsoft.CodeAnalysis.Workspaces (3)
Log\TraceLogger.cs (3)
22
=>
Trace
.WriteLine(string.Format("[{0}] {1} - {2}", Environment.CurrentManagedThreadId, functionId.ToString(), logMessage.GetMessage()));
25
=>
Trace
.WriteLine(string.Format("[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage()));
30
Trace
.WriteLine(string.Format("[{0}] End({1}) : [{2}ms] {3}", Environment.CurrentManagedThreadId, uniquePairId, delta, functionString));
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
RequestExecutionQueue.cs (2)
180
var didEnqueue = _queue.TryEnqueue((item,
Trace
.CorrelationManager.ActivityId, combinedCancellationToken));
239
Trace
.CorrelationManager.ActivityId = activityId;
Microsoft.DotNet.ApiCompat (1)
OutputHelper.cs (1)
39
Trace
.TraceError("Cannot open output file '{0}': {1}", outFilePath, exceptionMessage);
Microsoft.DotNet.ApiCompat.Core (5)
Executor.cs (5)
91
Trace
.Listeners.Add(new TextWriterTraceListener(output) { Filter = new EventTypeFilter(SourceLevels.Error | SourceLevels.Warning) });
98
contractHost.UnableToResolve += (sender, e) =>
Trace
.TraceError($"Unable to resolve assembly '{e.Unresolved}' referenced by the {leftOperand} assembly '{e.Referrer}'.");
108
implHost.UnableToResolve += (sender, e) =>
Trace
.TraceError($"Unable to resolve assembly '{e.Unresolved}' referenced by the {rightOperand} assembly '{e.Referrer}'.");
182
Trace
.TraceWarning("Enforcing MDIL servicing rules and exclusion of non-browsable types are both enabled, but they are not compatible so non-browsable types will not be excluded.");
187
Trace
.TraceWarning("Enforcing MDIL servicing rules or exclusion of non-browsable types are enabled " +
Microsoft.DotNet.VersionTools (70)
src\Automation\DependencyUpdateResults.cs (2)
53
Trace
.TraceInformation("Dependencies are currently up to date");
62
Trace
.TraceInformation($"git status --porcelain results:{Environment.NewLine}{status}");
src\Automation\GitHubApi\GitHubClient.cs (20)
72
Trace
.TraceInformation($"Getting contents of '{path}' using '{url}'");
118
Trace
.TraceInformation($"Getting the 'sha' of the current contents of file '{fileUrl}'");
123
Trace
.TraceInformation($"Got 'sha' value of '{currentSha}'");
125
Trace
.TraceInformation($"Request to update file '{fileUrl}' contents to:");
126
Trace
.TraceInformation(newFileContents);
144
Trace
.TraceInformation("Updated the file successfully.");
173
Trace
.TraceInformation($"Created pull request.");
174
Trace
.TraceInformation($"Pull request page: {await GetPullRequestUrlAsync(response)}");
216
Trace
.TraceInformation($"Updated pull request #{number}.");
217
Trace
.TraceInformation($"Pull request page: {await GetPullRequestUrlAsync(response)}");
243
Trace
.TraceInformation($"Could not find any pull request with head {headPrefix}");
249
Trace
.TraceInformation($"Found multiple pull requests with head {headPrefix}. On this page, found {string.Join(", ", allIds)}");
269
Trace
.TraceInformation($"Getting info about ref {@ref} in {project.Segments}");
298
Trace
.TraceInformation($"Getting info about commit {sha} in {project.Segments}");
309
Trace
.TraceInformation($"Getting info about ref {@ref} in {project.Segments}");
329
Trace
.TraceInformation($"Posting new tree to {project.Segments}:\n{body}");
354
Trace
.TraceInformation($"Posting new commit for tree '{tree}' with parents '{string.Join(", ", parents)}' to {project.Segments}");
378
Trace
.TraceInformation($"Posting reference '{@ref}' to '{sha}'");
402
Trace
.TraceInformation($"Patching reference '{@ref}' to '{sha}' with force={force} in {project.Segments}");
454
Trace
.TraceInformation($"{headerName}: {string.Join(", ", headerValues)}");
src\Automation\GitHubVersionsRepoUpdater.cs (4)
147
Trace
.TraceInformation($"Committed build-info update on attempt {i + 1}.");
155
Trace
.TraceInformation($"Encountered exception committing build-info update: {ex.Message}");
156
Trace
.TraceInformation($"Trying again in {RetryMillisecondsDelay}ms. {MaxTries - nextTry} tries left.");
161
Trace
.TraceInformation("Encountered exception committing build-info update.");
src\Automation\PullRequestCreator.cs (3)
91
Trace
.TraceInformation($"No existing pull request found.");
95
Trace
.TraceInformation(
131
Trace
.TraceInformation($"Sending comment to PR: {comment}");
src\Automation\VersionsRepoUpdater.cs (1)
58
Trace
.TraceInformation(
src\Automation\VstsApi\VstsAdapterClient.cs (9)
139
Trace
.TraceInformation("Created pull request.");
140
Trace
.TraceInformation($"Pull request page: {await GetPullRequestUrlAsync(response)}");
181
Trace
.TraceInformation($"Updated pull request #{number}.");
182
Trace
.TraceInformation($"Pull request page: {await GetPullRequestUrlAsync(response)}");
229
Trace
.TraceInformation($"Could not find any pull request with head {headPrefix}");
236
Trace
.TraceInformation(
283
Trace
.TraceInformation($"Getting info about commit {sha} in {project.Segments}");
315
Trace
.TraceInformation($"Getting info about ref {@ref} in {project.Segments}");
322
Trace
.TraceInformation($"Could not find ref '{@ref}'");
src\BuildInfo.cs (2)
116
Trace
.TraceWarning(
200
Trace
.TraceError(
src\BuildManifest\BuildManifestClient.cs (3)
79
Trace
.TraceInformation($"Creating update on remote commit: {remoteCommit}");
117
Trace
.TraceInformation($"Creating update on remote commit: {remoteCommit}");
259
Trace
.TraceInformation($"Retrying: {e.Message}");
src\Dependencies\BuildOutput\FilePackageUpdater.cs (1)
28
Trace
.TraceError($"For '{Path}', Could not find '{PackageId}' package version information.");
src\Dependencies\BuildOutput\FileRegexPackageUpdater.cs (1)
26
Trace
.TraceError($"Could not find package version information for '{PackageId}'");
src\Dependencies\BuildOutput\FileRegexReleaseUpdater.cs (1)
26
Trace
.TraceError($"Could not find build info for project named {BuildInfoName}");
src\Dependencies\BuildOutput\OrchestratedBuild\OrchestratedBuildUpdateHelpers.cs (4)
23
Trace
.TraceInformation($"No build identity match for '{buildName}'.");
33
Trace
.TraceInformation(
53
Trace
.TraceInformation(
74
Trace
.TraceInformation($"No package '{packageId}' match in '{info}'.");
src\Dependencies\BuildOutput\ProjectJsonUpdater.cs (2)
57
Trace
.TraceWarning($"Non-fatal exception occurred processing '{projectJsonFile}'. Skipping file. Exception: {e}. ");
111
Trace
.TraceWarning($"Couldn't parse '{oldVersion}' for package '{id}' in '{projectJsonFile}'. Skipping.");
src\Dependencies\FileRegexUpdater.cs (1)
33
Trace
.TraceError($"For '{Path}', a replacement value for '{Regex}' was not found.");
src\Dependencies\FileUpdater.cs (1)
36
Trace
.TraceError($"For '{Path}', a replacement value was not found.");
src\Dependencies\Submodule\IndicatorPackageSubmoduleUpdater.cs (4)
61
Trace
.TraceWarning(
70
Trace
.TraceInformation($"Found commit '{packageCommitHash}' in versions.txt.");
78
Trace
.TraceError($"Failed to find '{IndicatorPackageId}' specifying a commit in any build-info.");
94
Trace
.TraceInformation($"Downloading '{package}' from '{downloadUrl}'");
src\Dependencies\Submodule\LatestCommitSubmoduleUpdater.cs (1)
65
Trace
.TraceInformation($"For {Path}, found: {matchingInfo}");
src\Dependencies\Submodule\OrchestratedBuildSubmoduleUpdater.cs (1)
47
Trace
.TraceInformation($"In '{Path}', fetching '{refspec}' from '{GitUrl}'...");
src\Dependencies\Submodule\SubmoduleUpdater.cs (4)
27
Trace
.TraceWarning($"Unable to find a desired hash for '{Path}', leaving as '{currentHash}'.");
33
Trace
.TraceInformation($"Nothing to upgrade for '{Path}' at '{desiredHash}'");
39
Trace
.TraceInformation($"In '{Path}', moving from '{currentHash}' to '{desiredHash}'.");
63
Trace
.TraceInformation($"Fetching all configured remotes for '{Path}'.");
src\Util\FileUtils.cs (1)
41
Trace
.TraceInformation($"Writing changes to {path}");
src\Util\GitCommand.cs (4)
48
Trace
.TraceInformation($"EXEC {logMessage}");
60
Trace
.TraceInformation($"EXEC success: {message}");
64
Trace
.TraceError($"EXEC failure: {message}");
72
Trace
.TraceInformation($"In '{path}', checking out '{hash}'.");
Microsoft.DotNet.VersionTools.Tasks (4)
src\BaseDependenciesTask.cs (1)
75
Trace
.Listeners.MsBuildListenedInvoke(Log, TraceListenedExecute);
src\LocalUpdatePublishedVersions.cs (1)
47
Trace
.Listeners.MsBuildListenedInvoke(Log, () =>
src\SubmitPullRequest.cs (1)
90
Trace
.Listeners.MsBuildListenedInvoke(Log, TraceListenedExecute);
src\UpdatePublishedVersions.cs (1)
39
Trace
.Listeners.MsBuildListenedInvoke(Log, () =>
Microsoft.DotNet.VersionTools.Tests (2)
BuildManifest\BuildManifestClientTests.cs (2)
28
Trace
.Listeners.Add(_listener = new XunitTraceListener(_output));
34
Trace
.Listeners.Remove(_listener);
Microsoft.Extensions.Logging.TraceSource (2)
TraceSourceScope.cs (2)
24
Trace
.CorrelationManager.StartLogicalOperation(state);
35
Trace
.CorrelationManager.StopLogicalOperation();
Microsoft.ML.Tests (1)
Transformers\CategoricalHashTests.cs (1)
172
System.Diagnostics.
Trace
.WriteLine(slots.Items().Select(x => x.Value.ToString()).Distinct());
Microsoft.VisualStudio.IntegrationTest.Setup (2)
TestTraceListener.cs (2)
139
Trace
.Listeners.Clear();
140
Trace
.Listeners.Add(Instance);
netstandard (1)
netstandard.cs (1)
702
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
Trace
))]
PresentationCore (72)
MS\Internal\AppModel\SiteOfOriginContainer.cs (2)
45
System.Diagnostics.
Trace
.TraceInformation(
180
System.Diagnostics.
Trace
.TraceInformation(
MS\Internal\AppModel\SiteOfOriginPart.cs (9)
49
System.Diagnostics.
Trace
.TraceInformation(
61
System.Diagnostics.
Trace
.TraceInformation(
89
System.Diagnostics.
Trace
.TraceInformation(
105
System.Diagnostics.
Trace
.TraceInformation(
119
System.Diagnostics.
Trace
.TraceInformation(
132
System.Diagnostics.
Trace
.TraceInformation(
158
System.Diagnostics.
Trace
.TraceInformation(
182
System.Diagnostics.
Trace
.TraceInformation(
192
System.Diagnostics.
Trace
.TraceInformation(
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
214
System.Diagnostics.
Trace
.WriteLine("Ignoring unhandled stroke tag in ISF stroke descriptor");
MS\Internal\IO\Packaging\NetStream.cs (19)
75
System.Diagnostics.
Trace
.TraceInformation("NetStream.NetStream()");
127
System.Diagnostics.
Trace
.TraceInformation("NetStream.Read() offset:{0} length:{1}", _position, count );
261
System.Diagnostics.
Trace
.TraceInformation("NetStream.Seek() pos:{0}", temp);
287
System.Diagnostics.
Trace
.TraceInformation("NetStream.set_Position() pos:{0}", value);
378
System.Diagnostics.
Trace
.TraceInformation("NetStream.Close()");
390
System.Diagnostics.
Trace
.TraceInformation("NetStream.Dispose(bool) - mark as closed");
416
System.Diagnostics.
Trace
.TraceInformation("NetStream.Dispose(bool) - exiting");
505
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack() - exiting early because we are closed");
522
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack (offset,length):({0},{1})", _highWaterMark, read);
545
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack() - read complete - EndRead() returned zero");
617
System.Diagnostics.
Trace
.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1} (padded to {2})",
626
System.Diagnostics.
Trace
.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1}", block.Offset, block.Length);
692
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() total byteranges:{0} after merging:{1}", _unmergedBlocks, _byteRangesAvailable.Count);
933
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - byteRange data Event signaled");
954
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - byteRange request satisfied by full download - increasing threshold");
1000
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - Request Data (BeginRead)");
1073
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - wait start"); // for debugging deadlock
1094
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - wait end [{0}]", eventFired);
1120
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() satisfied with {0} bytes", dataAvailable);
MS\Internal\IO\Packaging\ResponseStream.cs (1)
234
System.Diagnostics.
Trace
.TraceInformation("ContainerResponseStream.Dispose(bool)");
MS\Internal\MediaTrace.cs (8)
62
System.Diagnostics.
Trace
.Listeners.Add(new TextWriterTraceListener(Console.Out));
80
System.Diagnostics.
Trace
.WriteLine(_switch.Description + " " + _switch.DisplayName + " : " + message);
107
System.Diagnostics.
Trace
.Indent();
112
System.Diagnostics.
Trace
.Unindent();
117
System.Diagnostics.
Trace
.Indent();
123
System.Diagnostics.
Trace
.WriteLine(_switch.Description + " " + _switch.DisplayName + " : " + message);
124
System.Diagnostics.
Trace
.Indent();
130
System.Diagnostics.
Trace
.Unindent();
System\IO\Packaging\PackWebRequest.cs (3)
80
System.Diagnostics.
Trace
.TraceInformation(
152
System.Diagnostics.
Trace
.TraceInformation(
168
System.Diagnostics.
Trace
.TraceInformation(
System\IO\Packaging\PackWebRequestFactory.cs (3)
64
System.Diagnostics.
Trace
.TraceInformation(
103
System.Diagnostics.
Trace
.TraceInformation(
116
System.Diagnostics.
Trace
.TraceInformation(
System\IO\Packaging\PackWebResponse.cs (22)
66
System.Diagnostics.
Trace
.TraceInformation(
89
System.Diagnostics.
Trace
.TraceInformation(
99
System.Diagnostics.
Trace
.TraceInformation(
133
System.Diagnostics.
Trace
.TraceInformation(
172
System.Diagnostics.
Trace
.TraceInformation(
194
System.Diagnostics.
Trace
.TraceInformation(
484
System.Diagnostics.
Trace
.TraceInformation(
505
System.Diagnostics.
Trace
.TraceInformation(
518
System.Diagnostics.
Trace
.TraceInformation(
541
System.Diagnostics.
Trace
.TraceInformation(
600
System.Diagnostics.
Trace
.TraceInformation(
617
System.Diagnostics.
Trace
.TraceInformation(
626
System.Diagnostics.
Trace
.TraceInformation(
644
System.Diagnostics.
Trace
.TraceInformation(
657
System.Diagnostics.
Trace
.TraceInformation(
668
System.Diagnostics.
Trace
.TraceInformation(
768
System.Diagnostics.
Trace
.TraceInformation(
790
System.Diagnostics.
Trace
.TraceError(
805
System.Diagnostics.
Trace
.TraceInformation(
834
System.Diagnostics.
Trace
.TraceInformation(
876
System.Diagnostics.
Trace
.TraceError(
891
System.Diagnostics.
Trace
.TraceInformation(
System\Windows\Media\Animation\Clock.cs (2)
4194
Trace
.Write(builder.ToString());
4240
Trace
.Write(builder.ToString());
System\Windows\Media\Animation\Timeline.cs (2)
975
Trace
.Write(builder.ToString());
1018
Trace
.Write(builder.ToString());
PresentationFramework (8)
MS\Internal\Documents\DocumentsTrace.cs (4)
109
listeners = System.Diagnostics.
Trace
.Listeners;
137
System.Diagnostics.
Trace
.WriteLine($"{_switch.Description} {_switch.DisplayName} : {message}");
169
System.Diagnostics.
Trace
.Indent();
178
System.Diagnostics.
Trace
.Unindent();
MS\Internal\IO\Packaging\XamlFilter.cs (1)
100
System.Diagnostics.
Trace
.TraceInformation("New Xaml filter created.");
System\Windows\Documents\Speller.cs (2)
359
System.Diagnostics.
Trace
.Write(string.Create(CultureInfo.InvariantCulture, $"Unloading dictionary failed. Original Uri:{uri}, file Uri:{info.PathUri}, exception:{e}"));
1585
System.Diagnostics.
Trace
.Write(string.Create(CultureInfo.InvariantCulture, $"Failure to delete temporary file with custom dictionary data. file Uri:{tempLocationUri},exception:{e}"));
System\Windows\Interop\HwndHost.cs (1)
989
Trace
.WriteLineIf(hwnd == null, $"- Warning - Notification Window is null\n{new System.Diagnostics.StackTrace(true).ToString()}");
PresentationUI (2)
MS\Internal\Documents\Application\Trace.cs (2)
24
System.Diagnostics.
Trace
.WriteLineIf(
42
System.Diagnostics.
Trace
.WriteLineIf(
System (1)
src\libraries\shims\System\ref\System.cs (1)
540
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
Trace
))]
System.Configuration.ConfigurationManager (6)
System\Diagnostics\TraceConfiguration.cs (6)
22
Trace
.Refreshing += RefreshingConfiguration;
160
Trace
.UseGlobalLock = traceSection.UseGlobalLock;
161
Trace
.AutoFlush = traceSection.AutoFlush;
162
Trace
.IndentSize = traceSection.IndentSize;
168
Trace
.Listeners.Clear();
171
Trace
.Listeners.Add(listener);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
243
InternalWrite(eventCache != null ?
Trace
.CorrelationManager.ActivityId : Guid.Empty);
System.Diagnostics.TraceSource (21)
System\Diagnostics\TraceEventCache.cs (1)
59
return
Trace
.CorrelationManager.LogicalOperationStack;
System\Diagnostics\TraceSource.cs (18)
207
if (
Trace
.AutoFlush) listener.Flush();
221
if (
Trace
.AutoFlush) listener.Flush();
227
if (
Trace
.AutoFlush) listener.Flush();
252
if (
Trace
.AutoFlush) listener.Flush();
266
if (
Trace
.AutoFlush) listener.Flush();
272
if (
Trace
.AutoFlush) listener.Flush();
297
if (
Trace
.AutoFlush) listener.Flush();
311
if (
Trace
.AutoFlush) listener.Flush();
317
if (
Trace
.AutoFlush) listener.Flush();
342
if (
Trace
.AutoFlush) listener.Flush();
356
if (
Trace
.AutoFlush) listener.Flush();
362
if (
Trace
.AutoFlush) listener.Flush();
387
if (
Trace
.AutoFlush) listener.Flush();
401
if (
Trace
.AutoFlush) listener.Flush();
407
if (
Trace
.AutoFlush) listener.Flush();
448
if (
Trace
.AutoFlush)
466
if (
Trace
.AutoFlush)
475
if (
Trace
.AutoFlush)
System\Diagnostics\TraceSwitch.cs (2)
84
Trace
.WriteLine(SR.Format(SR.TraceSwitchLevelTooLow, DisplayName));
89
Trace
.WriteLine(SR.Format(SR.TraceSwitchLevelTooHigh, DisplayName));
System.Private.Windows.Core.TestUtilities (11)
ModuleInitializer.cs (2)
14
Trace
.Listeners.Clear();
15
Trace
.Listeners.Add(ThrowingTraceListener.Instance);
NoAssertContext.cs (9)
29
private static readonly TraceListener? s_defaultListener =
Trace
.Listeners["Default"];
43
Trace
.Listeners.Add(s_noAssertListener);
44
if (s_defaultListener is not null &&
Trace
.Listeners.Contains(s_defaultListener))
47
Trace
.Listeners.Remove(s_defaultListener);
50
if (
Trace
.Listeners.OfType<ThrowingTraceListener>().FirstOrDefault() is { } throwingTraceListener)
53
Trace
.Listeners.Remove(throwingTraceListener);
85
Trace
.Listeners.Add(s_defaultListener!);
90
Trace
.Listeners.Add(ThrowingTraceListener.Instance);
93
Trace
.Listeners.Remove(s_noAssertListener);
System.ServiceModel.Primitives (8)
Internals\System\Runtime\ActionItem.cs (6)
240
previous =
Trace
.CorrelationManager.ActivityId;
242
Trace
.CorrelationManager.ActivityId = _eventTraceActivity.ActivityId;
255
Trace
.CorrelationManager.ActivityId = previous;
284
previous =
Trace
.CorrelationManager.ActivityId;
286
Trace
.CorrelationManager.ActivityId = _eventTraceActivity.ActivityId;
299
Trace
.CorrelationManager.ActivityId = previous;
Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (2)
51
Guid guid =
Trace
.CorrelationManager.ActivityId;
59
Trace
.CorrelationManager.ActivityId = Guid.Empty;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ImageCollectionCodeDomSerializerTests.cs (1)
74
Trace
.Listeners.Clear();
vbc (2)
src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));
VBCSCompiler (2)
src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));