using System; using System.Reflection; namespace System.Diagnostics { /// Provides a set of methods and properties that help you trace the execution of your code. This class cannot be inherited. /// 1 // Token: 0x020000FB RID: 251 public sealed class Trace { // Token: 0x060008C2 RID: 2242 RVA: 0x000171D0 File Offset: 0x000153D0 private Trace() { } /// Refreshes the trace configuration data. /// 1 // Token: 0x060008C3 RID: 2243 RVA: 0x000171D8 File Offset: 0x000153D8 [global::System.MonoNotSupported("")] public static void Refresh() { throw new NotImplementedException(); } /// Gets or sets whether should be called on the after every write. /// true if is called on the after every write; otherwise, false. /// 2 /// /// /// /// // Token: 0x17000250 RID: 592 // (get) Token: 0x060008C4 RID: 2244 RVA: 0x000171E0 File Offset: 0x000153E0 // (set) Token: 0x060008C5 RID: 2245 RVA: 0x000171E8 File Offset: 0x000153E8 public static bool AutoFlush { get { return TraceImpl.AutoFlush; } set { TraceImpl.AutoFlush = value; } } /// Gets or sets the indent level. /// The indent level. The default is zero. /// 2 /// /// /// /// // Token: 0x17000251 RID: 593 // (get) Token: 0x060008C6 RID: 2246 RVA: 0x000171F0 File Offset: 0x000153F0 // (set) Token: 0x060008C7 RID: 2247 RVA: 0x000171F8 File Offset: 0x000153F8 public static int IndentLevel { get { return TraceImpl.IndentLevel; } set { TraceImpl.IndentLevel = value; } } /// Gets or sets the number of spaces in an indent. /// The number of spaces in an indent. The default is four. /// 2 /// /// /// /// // Token: 0x17000252 RID: 594 // (get) Token: 0x060008C8 RID: 2248 RVA: 0x00017200 File Offset: 0x00015400 // (set) Token: 0x060008C9 RID: 2249 RVA: 0x00017208 File Offset: 0x00015408 public static int IndentSize { get { return TraceImpl.IndentSize; } set { TraceImpl.IndentSize = value; } } /// Gets the collection of listeners that is monitoring the trace output. /// A that represents a collection of type monitoring the trace output. /// 1 /// /// /// /// // Token: 0x17000253 RID: 595 // (get) Token: 0x060008CA RID: 2250 RVA: 0x00017210 File Offset: 0x00015410 public static TraceListenerCollection Listeners { get { return TraceImpl.Listeners; } } /// Gets the correlation manager for the thread for this trace. /// The object associated with the thread for this trace. /// 2 /// /// /// // Token: 0x17000254 RID: 596 // (get) Token: 0x060008CB RID: 2251 RVA: 0x00017218 File Offset: 0x00015418 public static CorrelationManager CorrelationManager { get { return TraceImpl.CorrelationManager; } } /// Gets or sets a value indicating whether the global lock should be used. /// true if the global lock is to be used; otherwise, false. The default is true. // Token: 0x17000255 RID: 597 // (get) Token: 0x060008CC RID: 2252 RVA: 0x00017220 File Offset: 0x00015420 // (set) Token: 0x060008CD RID: 2253 RVA: 0x00017228 File Offset: 0x00015428 public static bool UseGlobalLock { get { return TraceImpl.UseGlobalLock; } set { TraceImpl.UseGlobalLock = value; } } /// Checks for a condition; if the condition is false, displays a message box that shows the call stack. /// The conditional expression to evaluate. If the condition is true, a failure message is not sent and the message box is not displayed. /// 2 /// /// /// /// // Token: 0x060008CE RID: 2254 RVA: 0x00017230 File Offset: 0x00015430 [Conditional("TRACE")] public static void Assert(bool condition) { TraceImpl.Assert(condition); } /// Checks for a condition; if the condition is false, outputs a specified message and displays a message box that shows the call stack. /// The conditional expression to evaluate. If the condition is true, the specified message is not sent and the message box is not displayed. /// The message to send to the collection. /// 2 /// /// /// /// // Token: 0x060008CF RID: 2255 RVA: 0x00017238 File Offset: 0x00015438 [Conditional("TRACE")] public static void Assert(bool condition, string message) { TraceImpl.Assert(condition, message); } /// Checks for a condition; if the condition is false, outputs two specified messages and displays a message box that shows the call stack. /// The conditional expression to evaluate. If the condition is true, the specified messages are not sent and the message box is not displayed. /// The message to send to the collection. /// The detailed message to send to the collection. /// 2 /// /// /// /// // Token: 0x060008D0 RID: 2256 RVA: 0x00017244 File Offset: 0x00015444 [Conditional("TRACE")] public static void Assert(bool condition, string message, string detailMessage) { TraceImpl.Assert(condition, message, detailMessage); } /// Flushes the output buffer, and then closes the . /// 1 /// /// /// /// // Token: 0x060008D1 RID: 2257 RVA: 0x00017250 File Offset: 0x00015450 [Conditional("TRACE")] public static void Close() { TraceImpl.Close(); } /// Emits the specified error message. /// A message to emit. /// 2 /// /// /// /// // Token: 0x060008D2 RID: 2258 RVA: 0x00017258 File Offset: 0x00015458 [Conditional("TRACE")] public static void Fail(string message) { TraceImpl.Fail(message); } /// Emits an error message, and a detailed error message. /// A message to emit. /// A detailed message to emit. /// 2 /// /// /// /// // Token: 0x060008D3 RID: 2259 RVA: 0x00017260 File Offset: 0x00015460 [Conditional("TRACE")] public static void Fail(string message, string detailMessage) { TraceImpl.Fail(message, detailMessage); } /// Flushes the output buffer, and causes buffered data to be written to the . /// 1 /// /// /// /// // Token: 0x060008D4 RID: 2260 RVA: 0x0001726C File Offset: 0x0001546C [Conditional("TRACE")] public static void Flush() { TraceImpl.Flush(); } /// Increases the current by one. /// 2 /// /// /// /// // Token: 0x060008D5 RID: 2261 RVA: 0x00017274 File Offset: 0x00015474 [Conditional("TRACE")] public static void Indent() { TraceImpl.Indent(); } /// Decreases the current by one. /// 2 /// /// /// /// // Token: 0x060008D6 RID: 2262 RVA: 0x0001727C File Offset: 0x0001547C [Conditional("TRACE")] public static void Unindent() { TraceImpl.Unindent(); } /// Writes the value of the object's method to the trace listeners in the collection. /// An whose name is sent to the . /// 1 /// /// /// /// // Token: 0x060008D7 RID: 2263 RVA: 0x00017284 File Offset: 0x00015484 [Conditional("TRACE")] public static void Write(object value) { TraceImpl.Write(value); } /// Writes a message to the trace listeners in the collection. /// A message to write. /// 1 /// /// /// /// // Token: 0x060008D8 RID: 2264 RVA: 0x0001728C File Offset: 0x0001548C [Conditional("TRACE")] public static void Write(string message) { TraceImpl.Write(message); } /// Writes a category name and the value of the object's method to the trace listeners in the collection. /// An name is sent to the . /// A category name used to organize the output. /// 1 /// /// /// /// // Token: 0x060008D9 RID: 2265 RVA: 0x00017294 File Offset: 0x00015494 [Conditional("TRACE")] public static void Write(object value, string category) { TraceImpl.Write(value, category); } /// Writes a category name and a message to the trace listeners in the collection. /// A message to write. /// A category name used to organize the output. /// 1 /// /// /// /// // Token: 0x060008DA RID: 2266 RVA: 0x000172A0 File Offset: 0x000154A0 [Conditional("TRACE")] public static void Write(string message, string category) { TraceImpl.Write(message, category); } /// Writes the value of the object's method to the trace listeners in the collection if a condition is true. /// true to cause a message to be written; otherwise, false. /// An whose name is sent to the . /// 1 /// /// /// /// // Token: 0x060008DB RID: 2267 RVA: 0x000172AC File Offset: 0x000154AC [Conditional("TRACE")] public static void WriteIf(bool condition, object value) { TraceImpl.WriteIf(condition, value); } /// Writes a message to the trace listeners in the collection if a condition is true. /// true to cause a message to be written; otherwise, false. /// A message to write. /// 1 /// /// /// /// // Token: 0x060008DC RID: 2268 RVA: 0x000172B8 File Offset: 0x000154B8 [Conditional("TRACE")] public static void WriteIf(bool condition, string message) { TraceImpl.WriteIf(condition, message); } /// Writes a category name and the value of the object's method to the trace listeners in the collection if a condition is true. /// true to cause a message to be written; otherwise, false. /// An whose name is sent to the . /// A category name used to organize the output. /// 1 /// /// /// /// // Token: 0x060008DD RID: 2269 RVA: 0x000172C4 File Offset: 0x000154C4 [Conditional("TRACE")] public static void WriteIf(bool condition, object value, string category) { TraceImpl.WriteIf(condition, value, category); } /// Writes a category name and message to the trace listeners in the collection if a condition is true. /// true to cause a message to be written; otherwise, false. /// A message to write. /// A category name used to organize the output. /// 1 /// /// /// /// // Token: 0x060008DE RID: 2270 RVA: 0x000172D0 File Offset: 0x000154D0 [Conditional("TRACE")] public static void WriteIf(bool condition, string message, string category) { TraceImpl.WriteIf(condition, message, category); } /// Writes the value of the object's method to the trace listeners in the collection. /// An whose name is sent to the . /// 1 /// /// /// /// // Token: 0x060008DF RID: 2271 RVA: 0x000172DC File Offset: 0x000154DC [Conditional("TRACE")] public static void WriteLine(object value) { TraceImpl.WriteLine(value); } /// Writes a message to the trace listeners in the collection. /// A message to write. /// 1 /// /// /// /// // Token: 0x060008E0 RID: 2272 RVA: 0x000172E4 File Offset: 0x000154E4 [Conditional("TRACE")] public static void WriteLine(string message) { TraceImpl.WriteLine(message); } /// Writes a category name and the value of the object's method to the trace listeners in the collection. /// An whose name is sent to the . /// A category name used to organize the output. /// 1 /// /// /// /// // Token: 0x060008E1 RID: 2273 RVA: 0x000172EC File Offset: 0x000154EC [Conditional("TRACE")] public static void WriteLine(object value, string category) { TraceImpl.WriteLine(value, category); } /// Writes a category name and message to the trace listeners in the collection. /// A message to write. /// A category name used to organize the output. /// 1 /// /// /// /// // Token: 0x060008E2 RID: 2274 RVA: 0x000172F8 File Offset: 0x000154F8 [Conditional("TRACE")] public static void WriteLine(string message, string category) { TraceImpl.WriteLine(message, category); } /// Writes the value of the object's method to the trace listeners in the collection if a condition is true. /// true to cause a message to be written; otherwise, false. /// An whose name is sent to the . /// 1 /// /// /// /// // Token: 0x060008E3 RID: 2275 RVA: 0x00017304 File Offset: 0x00015504 [Conditional("TRACE")] public static void WriteLineIf(bool condition, object value) { TraceImpl.WriteLineIf(condition, value); } /// Writes a message to the trace listeners in the collection if a condition is true. /// true to cause a message to be written; otherwise, false. /// A message to write. /// 1 /// /// /// /// // Token: 0x060008E4 RID: 2276 RVA: 0x00017310 File Offset: 0x00015510 [Conditional("TRACE")] public static void WriteLineIf(bool condition, string message) { TraceImpl.WriteLineIf(condition, message); } /// Writes a category name and the value of the object's method to the trace listeners in the collection if a condition is true. /// true to cause a message to be written; otherwise, false. /// An whose name is sent to the . /// A category name used to organize the output. /// 1 /// /// /// /// // Token: 0x060008E5 RID: 2277 RVA: 0x0001731C File Offset: 0x0001551C [Conditional("TRACE")] public static void WriteLineIf(bool condition, object value, string category) { TraceImpl.WriteLineIf(condition, value, category); } /// Writes a category name and message to the trace listeners in the collection if a condition is true. /// true to cause a message to be written; otherwise, false. /// A message to write. /// A category name used to organize the output. /// 1 /// /// /// /// // Token: 0x060008E6 RID: 2278 RVA: 0x00017328 File Offset: 0x00015528 [Conditional("TRACE")] public static void WriteLineIf(bool condition, string message, string category) { TraceImpl.WriteLineIf(condition, message, category); } // Token: 0x060008E7 RID: 2279 RVA: 0x00017334 File Offset: 0x00015534 private static void DoTrace(string kind, Assembly report, string message) { string text = string.Empty; try { text = report.Location; } catch (MethodAccessException) { } TraceImpl.WriteLine(string.Format("{0} {1} : 0 : {2}", text, kind, message)); } /// Writes an error message to the trace listeners in the collection using the specified message. /// The informative message to write. /// 1 /// /// /// /// /// // Token: 0x060008E8 RID: 2280 RVA: 0x00017388 File Offset: 0x00015588 [Conditional("TRACE")] public static void TraceError(string message) { Trace.DoTrace("Error", Assembly.GetCallingAssembly(), message); } /// Writes an error message to the trace listeners in the collection using the specified array of objects and formatting information. /// A format string that contains zero or more format items, which correspond to objects in the array. /// An object array containing zero or more objects to format. /// 1 /// /// /// /// /// // Token: 0x060008E9 RID: 2281 RVA: 0x0001739C File Offset: 0x0001559C [Conditional("TRACE")] public static void TraceError(string message, params object[] args) { Trace.DoTrace("Error", Assembly.GetCallingAssembly(), string.Format(message, args)); } /// Writes an informational message to the trace listeners in the collection using the specified message. /// The informative message to write. /// 1 /// /// /// /// /// // Token: 0x060008EA RID: 2282 RVA: 0x000173B4 File Offset: 0x000155B4 [Conditional("TRACE")] public static void TraceInformation(string message) { Trace.DoTrace("Information", Assembly.GetCallingAssembly(), message); } /// Writes an informational message to the trace listeners in the collection using the specified array of objects and formatting information. /// A format string that contains zero or more format items, which correspond to objects in the array. /// An object array containing zero or more objects to format. /// 1 /// /// /// /// /// // Token: 0x060008EB RID: 2283 RVA: 0x000173C8 File Offset: 0x000155C8 [Conditional("TRACE")] public static void TraceInformation(string message, params object[] args) { Trace.DoTrace("Information", Assembly.GetCallingAssembly(), string.Format(message, args)); } /// Writes a warning message to the trace listeners in the collection using the specified message. /// The informative message to write. /// 1 /// /// /// /// /// // Token: 0x060008EC RID: 2284 RVA: 0x000173E0 File Offset: 0x000155E0 [Conditional("TRACE")] public static void TraceWarning(string message) { Trace.DoTrace("Warning", Assembly.GetCallingAssembly(), message); } /// Writes a warning message to the trace listeners in the collection using the specified array of objects and formatting information. /// A format string that contains zero or more format items, which correspond to objects in the array. /// An object array containing zero or more objects to format. /// 1 /// /// /// /// /// // Token: 0x060008ED RID: 2285 RVA: 0x000173F4 File Offset: 0x000155F4 [Conditional("TRACE")] public static void TraceWarning(string message, params object[] args) { Trace.DoTrace("Warning", Assembly.GetCallingAssembly(), string.Format(message, args)); } } }