diff options
author | dotnet-bot <dotnet-bot@microsoft.com> | 2015-02-25 14:46:31 -0800 |
---|---|---|
committer | dotnet-bot <dotnet-bot@microsoft.com> | 2015-02-25 14:46:31 -0800 |
commit | 93e7d209dc19ddeff0f5ea5e3686b3ec0efef447 (patch) | |
tree | 55f72673952ec7128ccddc4e84b0b51504f9d217 /src/mscorlib/src/System/AppContext | |
parent | da9fdd2fa9ff585965b38a9d39fbcb596165977a (diff) | |
download | coreclr-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.cs | 1 | ||||
-rw-r--r-- | src/mscorlib/src/System/AppContext/AppContextSwitches.cs | 12 |
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 +} |