Merge pull request #980 from StephenMcConnel/bug-18638
[mono.git] / mcs / class / corlib / ReferenceSources / ExecutionContext.cs
1 namespace System.Threading
2 {
3         partial class ExecutionContext
4         {
5                 internal static ExecutionContext Capture (ref StackCrawlMark stackMark, CaptureOptions options)
6                 {
7                         // For References sources compatibility only
8                         return null;
9                 }
10
11             [Flags]
12             internal enum CaptureOptions
13             {
14                 None = 0x00,
15
16                 IgnoreSyncCtx = 0x01,       //Don't flow SynchronizationContext
17
18                 OptimizeDefaultCase = 0x02, //Faster in the typical case, but can't show the result to users
19                                             // because they could modify the shared default EC.
20                                             // Use this only if you won't be exposing the captured EC to users.
21             }
22         }
23
24     [Serializable]
25     internal enum StackCrawlMark
26     {
27         LookForMe = 0,
28         LookForMyCaller = 1,
29         LookForMyCallersCaller = 2,
30         LookForThread = 3
31     }
32 }