IAccessContextTScopeUntilAvailable Method (TScope) |
Returns a Task
which completes as soon as the scopeToOwn
is owned by the current instance
so that subsequent operations may actually modify
the resource managed by AccessFlow.
Namespace: AccessFlowAssembly: AccessFlow (in AccessFlow.dll) Version: 1.0.0.2 (1.0.0.2)
SyntaxTask UntilAvailable(
TScope scopeToOwn
)
Function UntilAvailable (
scopeToOwn As TScope
) As Task
Task^ UntilAvailable(
TScope scopeToOwn
)
abstract UntilAvailable :
scopeToOwn : 'TScope -> Task
Parameters
- scopeToOwn
- Type: TScope
The access scope to own by the current instance.
Return Value
Type:
Task
A Task which completes as soon as
the given access scope is owned
by the current AccessContext.
Remarks
If this method is used the current
IAccessContextTScope must not have
any child contexts,
neither before nor after the invocation of this method.
The method should only be invoked sequentially
(usually via
await) from the thread “owning”
the
IAccessContextTScope.
See Also