mscorlib(4.0.0.0) API with additions
AsyncOperationManager.cs
2 using System.Threading;
3 
4 namespace System.ComponentModel
5 {
7  [global::__DynamicallyInvokable]
8  [HostProtection(SecurityAction.LinkDemand, SharedState = true)]
9  public static class AsyncOperationManager
10  {
13  [EditorBrowsable(EditorBrowsableState.Advanced)]
14  [global::__DynamicallyInvokable]
16  {
17  [global::__DynamicallyInvokable]
18  get
19  {
20  if (SynchronizationContext.Current == null)
21  {
23  }
25  }
26  [global::__DynamicallyInvokable]
27  [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
28  set
29  {
31  }
32  }
33 
37  [global::__DynamicallyInvokable]
38  public static AsyncOperation CreateOperation(object userSuppliedState)
39  {
40  return AsyncOperation.CreateOperation(userSuppliedState, SynchronizationContext);
41  }
42  }
43 }
Provides concurrency management for classes that support asynchronous method calls....
static SynchronizationContext?? Current
Gets the synchronization context for the current thread.
Tracks the lifetime of an asynchronous operation.
EditorBrowsableState
Specifies the browsable state of a property or method from within an editor.
Definition: __Canon.cs:3
static SynchronizationContext SynchronizationContext
Gets or sets the synchronization context for the asynchronous operation.
SecurityAction
Specifies the security actions that can be performed using declarative security.
Provides the basic functionality for propagating a synchronization context in various synchronization...
static void SetSynchronizationContext(SynchronizationContext syncContext)
Sets the current synchronization context.
static AsyncOperation CreateOperation(object userSuppliedState)
Returns an T:System.ComponentModel.AsyncOperation for tracking the duration of a particular asynchron...