291 references to Trace
Aspire.Dashboard (3)
Otlp\Model\OtlpSpan.cs (3)
44
public IEnumerable<OtlpSpan> GetChildSpans() => GetChildSpans(this,
Trace
.Spans);
53
if (
Trace
.Spans.TryGetValue(ParentSpanId, out var span))
117
return $@"SpanId = {SpanId}, StartTime = {StartTime.ToLocalTime():h:mm:ss.fff tt}, ParentSpanId = {ParentSpanId}, TraceId = {
Trace
.TraceId}";
BuildValidator (1)
Program.cs (1)
32
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.Build (24)
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
424
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
494
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
535
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
576
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
667
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log telemetry event '{1}'", _taskLocation.ToString(), eventName));
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
Definition\Project.cs (7)
2050
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Explicitly marked dirty, eg., because a global property was set, or an import, such as a .user file, was created on disk [{0}] [PC Hash {1}]", FullPath, ProjectCollection.GetHashCode()));
2062
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1}] [PC Hash {2}]", Xml.LastDirtyReason, FullPath, ProjectCollection.GetHashCode()));
2073
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because toolsets updated [{0}] [PC Hash {1}]", FullPath, ProjectCollection.GetHashCode()));
2089
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1} - {2}] [PC Hash {3}]", reason, FullPath, import.ImportedProject.FullPath == FullPath ? String.Empty : import.ImportedProject.FullPath, ProjectCollection.GetHashCode()));
2980
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Initially set global property {0} to '{1}' [{2}]", name, displayValue, FullPath));
2985
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Changed global property {0} from '{1}' to '{2}' [{3}]", name, displayOriginalValue, displayValue, FullPath));
3193
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Remove global property {0}", name));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
Evaluation\Evaluator.cs (1)
812
Trace
.WriteLine(line + output + line);
Evaluation\ProjectRootElementCache.cs (1)
677
Trace
.WriteLine(prefix + " " + Process.GetCurrentProcess().Id + " | " + message + param1);
Instance\ProjectInstance.cs (1)
3164
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Creating a ProjectInstance from an unevaluated state [{0}]", FullPath));
Tracing.cs (6)
117
Trace
.WriteLine("================================================");
118
Trace
.WriteLine(s_slot);
121
Trace
.WriteLine(System.Environment.StackTrace);
136
Trace
.WriteLine(item.ToString());
148
Trace
.WriteLine(s_currentAssemblyName);
151
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Build.Engine.OM.UnitTests (3)
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
Microsoft.Build.Tasks.Core (9)
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
Tracing.cs (6)
117
Trace
.WriteLine("================================================");
118
Trace
.WriteLine(s_slot);
121
Trace
.WriteLine(System.Environment.StackTrace);
136
Trace
.WriteLine(item.ToString());
148
Trace
.WriteLine(s_currentAssemblyName);
151
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Build.Utilities.Core (9)
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
Tracing.cs (6)
117
Trace
.WriteLine("================================================");
118
Trace
.WriteLine(s_slot);
121
Trace
.WriteLine(System.Environment.StackTrace);
136
Trace
.WriteLine(item.ToString());
148
Trace
.WriteLine(s_currentAssemblyName);
151
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
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.Wpf (2)
Suggestions\SuggestedActionsSource.cs (1)
288
Trace
.WriteLine("given range is not current");
Suggestions\SuggestedActionsSource_Async.cs (1)
253
Trace
.WriteLine("given range is not current");
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
182
var didEnqueue = _queue.TryEnqueue((item,
Trace
.CorrelationManager.ActivityId, combinedCancellationToken));
241
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)
182
var didEnqueue = _queue.TryEnqueue((item,
Trace
.CorrelationManager.ActivityId, combinedCancellationToken));
241
Trace
.CorrelationManager.ActivityId = activityId;
Microsoft.DotNet.VersionTools (70)
Automation\DependencyUpdateResults.cs (2)
53
Trace
.TraceInformation("Dependencies are currently up to date");
62
Trace
.TraceInformation($"git status --porcelain results:{Environment.NewLine}{status}");
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)}");
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.");
Automation\PullRequestCreator.cs (3)
91
Trace
.TraceInformation($"No existing pull request found.");
95
Trace
.TraceInformation(
131
Trace
.TraceInformation($"Sending comment to PR: {comment}");
Automation\VersionsRepoUpdater.cs (1)
58
Trace
.TraceInformation(
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}'");
BuildInfo.cs (2)
116
Trace
.TraceWarning(
200
Trace
.TraceError(
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}");
Dependencies\BuildOutput\FilePackageUpdater.cs (1)
28
Trace
.TraceError($"For '{Path}', Could not find '{PackageId}' package version information.");
Dependencies\BuildOutput\FileRegexPackageUpdater.cs (1)
26
Trace
.TraceError($"Could not find package version information for '{PackageId}'");
Dependencies\BuildOutput\FileRegexReleaseUpdater.cs (1)
26
Trace
.TraceError($"Could not find build info for project named {BuildInfoName}");
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}'.");
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.");
Dependencies\FileRegexUpdater.cs (1)
33
Trace
.TraceError($"For '{Path}', a replacement value for '{Regex}' was not found.");
Dependencies\FileUpdater.cs (1)
36
Trace
.TraceError($"For '{Path}', a replacement value was not found.");
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}'");
Dependencies\Submodule\LatestCommitSubmoduleUpdater.cs (1)
65
Trace
.TraceInformation($"For {Path}, found: {matchingInfo}");
Dependencies\Submodule\OrchestratedBuildSubmoduleUpdater.cs (1)
47
Trace
.TraceInformation($"In '{Path}', fetching '{refspec}' from '{GitUrl}'...");
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}'.");
Util\FileUtils.cs (1)
41
Trace
.TraceInformation($"Writing changes to {path}");
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)
BaseDependenciesTask.cs (1)
75
Trace
.Listeners.MsBuildListenedInvoke(Log, TraceListenedExecute);
LocalUpdatePublishedVersions.cs (1)
47
Trace
.Listeners.MsBuildListenedInvoke(Log, () =>
SubmitPullRequest.cs (1)
90
Trace
.Listeners.MsBuildListenedInvoke(Log, TraceListenedExecute);
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);
MSBuild (3)
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
MSBuildTaskHost (2)
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
netstandard (1)
netstandard.cs (1)
702
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
Trace
))]
PresentationCore (72)
MS\Internal\AppModel\SiteOfOriginContainer.cs (2)
46
System.Diagnostics.
Trace
.TraceInformation(
193
System.Diagnostics.
Trace
.TraceInformation(
MS\Internal\AppModel\SiteOfOriginPart.cs (9)
50
System.Diagnostics.
Trace
.TraceInformation(
62
System.Diagnostics.
Trace
.TraceInformation(
90
System.Diagnostics.
Trace
.TraceInformation(
106
System.Diagnostics.
Trace
.TraceInformation(
120
System.Diagnostics.
Trace
.TraceInformation(
133
System.Diagnostics.
Trace
.TraceInformation(
159
System.Diagnostics.
Trace
.TraceInformation(
183
System.Diagnostics.
Trace
.TraceInformation(
193
System.Diagnostics.
Trace
.TraceInformation(
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
215
System.Diagnostics.
Trace
.WriteLine("Ignoring unhandled stroke tag in ISF stroke descriptor");
MS\Internal\IO\Packaging\NetStream.cs (19)
76
System.Diagnostics.
Trace
.TraceInformation("NetStream.NetStream()");
128
System.Diagnostics.
Trace
.TraceInformation("NetStream.Read() offset:{0} length:{1}", _position, count );
262
System.Diagnostics.
Trace
.TraceInformation("NetStream.Seek() pos:{0}", temp);
288
System.Diagnostics.
Trace
.TraceInformation("NetStream.set_Position() pos:{0}", value);
379
System.Diagnostics.
Trace
.TraceInformation("NetStream.Close()");
391
System.Diagnostics.
Trace
.TraceInformation("NetStream.Dispose(bool) - mark as closed");
428
System.Diagnostics.
Trace
.TraceInformation("NetStream.Dispose(bool) - exiting");
517
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack() - exiting early because we are closed");
534
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack (offset,length):({0},{1})", _highWaterMark, read);
557
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack() - read complete - EndRead() returned zero");
628
System.Diagnostics.
Trace
.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1} (padded to {2})",
637
System.Diagnostics.
Trace
.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1}", block.Offset, block.Length);
703
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() total byteranges:{0} after merging:{1}", _unmergedBlocks, _byteRangesAvailable.Count);
944
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - byteRange data Event signaled");
965
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - byteRange request satisfied by full download - increasing threshold");
1011
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - Request Data (BeginRead)");
1084
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - wait start"); // for debugging deadlock
1105
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - wait end [{0}]", eventFired);
1131
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() satisfied with {0} bytes", dataAvailable);
MS\Internal\IO\Packaging\ResponseStream.cs (1)
235
System.Diagnostics.
Trace
.TraceInformation("ContainerResponseStream.Dispose(bool)");
MS\Internal\MediaTrace.cs (8)
63
System.Diagnostics.
Trace
.Listeners.Add(new TextWriterTraceListener(Console.Out));
81
System.Diagnostics.
Trace
.WriteLine(_switch.Description + " " + _switch.DisplayName + " : " + message);
108
System.Diagnostics.
Trace
.Indent();
113
System.Diagnostics.
Trace
.Unindent();
118
System.Diagnostics.
Trace
.Indent();
124
System.Diagnostics.
Trace
.WriteLine(_switch.Description + " " + _switch.DisplayName + " : " + message);
125
System.Diagnostics.
Trace
.Indent();
131
System.Diagnostics.
Trace
.Unindent();
System\IO\Packaging\PackWebRequest.cs (3)
81
System.Diagnostics.
Trace
.TraceInformation(
153
System.Diagnostics.
Trace
.TraceInformation(
169
System.Diagnostics.
Trace
.TraceInformation(
System\IO\Packaging\PackWebRequestFactory.cs (3)
65
System.Diagnostics.
Trace
.TraceInformation(
104
System.Diagnostics.
Trace
.TraceInformation(
117
System.Diagnostics.
Trace
.TraceInformation(
System\IO\Packaging\PackWebResponse.cs (22)
69
System.Diagnostics.
Trace
.TraceInformation(
92
System.Diagnostics.
Trace
.TraceInformation(
102
System.Diagnostics.
Trace
.TraceInformation(
136
System.Diagnostics.
Trace
.TraceInformation(
175
System.Diagnostics.
Trace
.TraceInformation(
197
System.Diagnostics.
Trace
.TraceInformation(
489
System.Diagnostics.
Trace
.TraceInformation(
509
System.Diagnostics.
Trace
.TraceInformation(
522
System.Diagnostics.
Trace
.TraceInformation(
548
System.Diagnostics.
Trace
.TraceInformation(
607
System.Diagnostics.
Trace
.TraceInformation(
624
System.Diagnostics.
Trace
.TraceInformation(
633
System.Diagnostics.
Trace
.TraceInformation(
651
System.Diagnostics.
Trace
.TraceInformation(
664
System.Diagnostics.
Trace
.TraceInformation(
675
System.Diagnostics.
Trace
.TraceInformation(
777
System.Diagnostics.
Trace
.TraceInformation(
799
System.Diagnostics.
Trace
.TraceError(
814
System.Diagnostics.
Trace
.TraceInformation(
843
System.Diagnostics.
Trace
.TraceInformation(
885
System.Diagnostics.
Trace
.TraceError(
900
System.Diagnostics.
Trace
.TraceInformation(
System\Windows\Media\Animation\Clock.cs (2)
4208
Trace
.Write(builder.ToString());
4254
Trace
.Write(builder.ToString());
System\Windows\Media\Animation\Timeline.cs (2)
974
Trace
.Write(builder.ToString());
1017
Trace
.Write(builder.ToString());
PresentationFramework (8)
MS\Internal\Documents\DocumentsTrace.cs (4)
110
listeners = System.Diagnostics.
Trace
.Listeners;
138
System.Diagnostics.
Trace
.WriteLine($"{_switch.Description} {_switch.DisplayName} : {message}");
170
System.Diagnostics.
Trace
.Indent();
179
System.Diagnostics.
Trace
.Unindent();
MS\Internal\IO\Packaging\XamlFilter.cs (1)
101
System.Diagnostics.
Trace
.TraceInformation("New Xaml filter created.");
System\Windows\Documents\Speller.cs (2)
363
System.Diagnostics.
Trace
.Write(string.Create(CultureInfo.InvariantCulture, $"Unloading dictionary failed. Original Uri:{uri}, file Uri:{info.PathUri}, exception:{e}"));
1592
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)
996
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)
31
System.Diagnostics.
Trace
.WriteLineIf(
53
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)
19
Trace
.Refreshing += RefreshingConfiguration;
157
Trace
.UseGlobalLock = traceSection.UseGlobalLock;
158
Trace
.AutoFlush = traceSection.AutoFlush;
159
Trace
.IndentSize = traceSection.IndentSize;
165
Trace
.Listeners.Clear();
168
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)
60
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);
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));