summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/AppContext
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2015-02-25 14:46:31 -0800
committerdotnet-bot <dotnet-bot@microsoft.com>2015-02-25 14:46:31 -0800
commit93e7d209dc19ddeff0f5ea5e3686b3ec0efef447 (patch)
tree55f72673952ec7128ccddc4e84b0b51504f9d217 /src/mscorlib/src/System/AppContext
parentda9fdd2fa9ff585965b38a9d39fbcb596165977a (diff)
downloadcoreclr-93e7d209dc19ddeff0f5ea5e3686b3ec0efef447.tar.gz
coreclr-93e7d209dc19ddeff0f5ea5e3686b3ec0efef447.tar.bz2
coreclr-93e7d209dc19ddeff0f5ea5e3686b3ec0efef447.zip
FI from $/DevDiv/FXMain to $/DevDiv/FX/Product/ProjectK **FI_LABEL=22625.00**
[tfs-changeset: 1421297]
Diffstat (limited to 'src/mscorlib/src/System/AppContext')
-rw-r--r--src/mscorlib/src/System/AppContext/AppContextDefaultValues.Defaults.cs1
-rw-r--r--src/mscorlib/src/System/AppContext/AppContextSwitches.cs12
2 files changed, 12 insertions, 1 deletions
diff --git a/src/mscorlib/src/System/AppContext/AppContextDefaultValues.Defaults.cs b/src/mscorlib/src/System/AppContext/AppContextDefaultValues.Defaults.cs
index 11c3cdfbcf..66f865e7bc 100644
--- a/src/mscorlib/src/System/AppContext/AppContextDefaultValues.Defaults.cs
+++ b/src/mscorlib/src/System/AppContext/AppContextDefaultValues.Defaults.cs
@@ -10,6 +10,7 @@ namespace System
internal static readonly string SwitchNoAsyncCurrentCulture = "Switch.System.Globalization.NoAsyncCurrentCulture";
internal static readonly string SwitchThrowExceptionIfDisposedCancellationTokenSource = "Switch.System.Threading.ThrowExceptionIfDisposedCancellationTokenSource";
+ internal static readonly string SwitchPreserveEventListnerObjectIdentity = "Switch.System.Diagnostics.EventSource.PreserveEventListnerObjectIdentity";
// This is a partial method. Platforms can provide an implementation of it that will set override values
diff --git a/src/mscorlib/src/System/AppContext/AppContextSwitches.cs b/src/mscorlib/src/System/AppContext/AppContextSwitches.cs
index 3a1d7e00f5..c0181c883a 100644
--- a/src/mscorlib/src/System/AppContext/AppContextSwitches.cs
+++ b/src/mscorlib/src/System/AppContext/AppContextSwitches.cs
@@ -28,6 +28,16 @@ namespace System
}
}
+ private static int _preserveEventListnerObjectIdentity;
+ public static bool PreserveEventListnerObjectIdentity
+ {
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
+ get
+ {
+ return GetCachedSwitchValue(AppContextDefaultValues.SwitchPreserveEventListnerObjectIdentity, ref _preserveEventListnerObjectIdentity);
+ }
+ }
+
//
// Implementation details
//
@@ -66,4 +76,4 @@ namespace System
return isSwitchEnabled;
}
}
-} \ No newline at end of file
+}