|
|
@@ -41,7 +41,6 @@ namespace System.Diagnostics {
|
|
|
internal class TraceImplSettings {
|
|
|
public const string Key = ".__TraceInfoSettingsKey__.";
|
|
|
|
|
|
- public bool AutoFlush;
|
|
|
//public int IndentLevel;
|
|
|
public int IndentSize = 4;
|
|
|
public TraceListenerCollection Listeners = new TraceListenerCollection (false);
|
|
|
@@ -61,36 +60,11 @@ namespace System.Diagnostics {
|
|
|
|
|
|
private static bool autoFlush;
|
|
|
|
|
|
-#if TARGET_JVM
|
|
|
- static readonly LocalDataStoreSlot _indentLevelStore = System.Threading.Thread.AllocateDataSlot ();
|
|
|
- static readonly LocalDataStoreSlot _indentSizeStore = System.Threading.Thread.AllocateDataSlot ();
|
|
|
-
|
|
|
- private static int indentLevel {
|
|
|
- get {
|
|
|
- object o = System.Threading.Thread.GetData (_indentLevelStore);
|
|
|
- if (o == null)
|
|
|
- return 0;
|
|
|
- return (int) o;
|
|
|
- }
|
|
|
- set { System.Threading.Thread.SetData (_indentLevelStore, value); }
|
|
|
- }
|
|
|
-
|
|
|
- private static int indentSize {
|
|
|
- get {
|
|
|
- object o = System.Threading.Thread.GetData (_indentSizeStore);
|
|
|
- if (o == null)
|
|
|
- return 0;
|
|
|
- return (int) o;
|
|
|
- }
|
|
|
- set { System.Threading.Thread.SetData (_indentSizeStore, value); }
|
|
|
- }
|
|
|
-#else
|
|
|
[ThreadStatic]
|
|
|
private static int indentLevel;
|
|
|
|
|
|
[ThreadStatic]
|
|
|
private static int indentSize;
|
|
|
-#endif
|
|
|
|
|
|
#if MOBILE
|
|
|
static TraceListenerCollection listeners = new TraceListenerCollection (true);
|
|
|
@@ -205,7 +179,7 @@ namespace System.Diagnostics {
|
|
|
|
|
|
d.Remove (TraceImplSettings.Key);
|
|
|
|
|
|
- autoFlush = s.AutoFlush;
|
|
|
+// autoFlush = s.AutoFlush;
|
|
|
// indentLevel = s.IndentLevel;
|
|
|
indentSize = s.IndentSize;
|
|
|
listeners = s.Listeners;
|