Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/referencesource/System/sys/LocalAppContextSwitches.cs')
-rw-r--r--mcs/class/referencesource/System/sys/LocalAppContextSwitches.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/class/referencesource/System/sys/LocalAppContextSwitches.cs b/mcs/class/referencesource/System/sys/LocalAppContextSwitches.cs
index 1d776627f77..50f2bac56df 100644
--- a/mcs/class/referencesource/System/sys/LocalAppContextSwitches.cs
+++ b/mcs/class/referencesource/System/sys/LocalAppContextSwitches.cs
@@ -25,5 +25,19 @@ namespace System
}
#endregion
+#region System.Net.WebSockets.HttpListenerAsyncEventArgs
+ private static int _allocateOverlappedOnDemand;
+ internal const string AllocateOverlappedOnDemandName = @"Switch.System.Net.WebSockets.HttpListenerAsyncEventArgs.AllocateOverlappedOnDemand";
+
+ public static bool AllocateOverlappedOnDemand
+ {
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
+ get
+ {
+ return LocalAppContext.GetCachedSwitchValue(AllocateOverlappedOnDemandName, ref _allocateOverlappedOnDemand);
+ }
+ }
+#endregion
+
}
}