8 [__DynamicallyInvokable]
12 [__DynamicallyInvokable]
16 private readonly
Task m_task;
18 private readonly
bool m_continueOnCapturedContext;
24 [__DynamicallyInvokable]
27 [__DynamicallyInvokable]
30 return m_task.IsCompleted;
37 m_continueOnCapturedContext = continueOnCapturedContext;
44 [SecuritySafeCritical]
45 [__DynamicallyInvokable]
48 TaskAwaiter.OnCompletedInternal(m_task, continuation, m_continueOnCapturedContext, flowExecutionContext:
true);
56 [__DynamicallyInvokable]
59 TaskAwaiter.OnCompletedInternal(m_task, continuation, m_continueOnCapturedContext, flowExecutionContext:
false);
66 [__DynamicallyInvokable]
73 private readonly ConfiguredTaskAwaiter m_configuredTaskAwaiter;
77 m_configuredTaskAwaiter =
new ConfiguredTaskAwaiter(task, continueOnCapturedContext);
82 [__DynamicallyInvokable]
85 return m_configuredTaskAwaiter;
90 [__DynamicallyInvokable]
94 [__DynamicallyInvokable]
100 private readonly
bool m_continueOnCapturedContext;
106 [__DynamicallyInvokable]
109 [__DynamicallyInvokable]
112 return m_task.IsCompleted;
119 m_continueOnCapturedContext = continueOnCapturedContext;
126 [SecuritySafeCritical]
127 [__DynamicallyInvokable]
130 TaskAwaiter.OnCompletedInternal(m_task, continuation, m_continueOnCapturedContext, flowExecutionContext:
true);
138 [__DynamicallyInvokable]
141 TaskAwaiter.OnCompletedInternal(m_task, continuation, m_continueOnCapturedContext, flowExecutionContext:
false);
149 [__DynamicallyInvokable]
153 return m_task.ResultOnSuccess;
157 private readonly ConfiguredTaskAwaiter m_configuredTaskAwaiter;
161 m_configuredTaskAwaiter =
new ConfiguredTaskAwaiter(task, continueOnCapturedContext);
166 [__DynamicallyInvokable]
169 return m_configuredTaskAwaiter;
Represents an operation that schedules continuations when it completes.
delegate void Action()
Encapsulates a method that has no parameters and does not return a value.
SecurityAction
Specifies the security actions that can be performed using declarative security.
Provides an object that waits for the completion of an asynchronous task.
Creates or manipulates threads other than its own, which might be harmful to the host.
Represents an awaiter that schedules continuations when an await operation completes.
Represents an asynchronous operation that can return a value.