ChildContextualCreatorExtensionsInChildWithinTScope, TChild Method (IChildContextualCreatorTScope, TChild, TScope, FuncTChild, Task) |
Creates a new child contextual from parent
with an access scope of the intersection of
the access scope of parent and
maximumAccessScope and
executes content
with the new created child contextual.
After content has finished,
the child contextual is disposed.
Namespace: AccessFlowAssembly: AccessFlow (in AccessFlow.dll) Version: 1.0.0.2 (1.0.0.2)
Syntaxpublic static Task InChildWithin<TScope, TChild>(
this IChildContextualCreator<TScope, TChild> parent,
TScope maximumAccessScope,
Func<TChild, Task> content
)
where TChild : IDisposable
<ExtensionAttribute>
Public Shared Function InChildWithin(Of TScope, TChild As IDisposable) (
parent As IChildContextualCreator(Of TScope, TChild),
maximumAccessScope As TScope,
content As Func(Of TChild, Task)
) As Task
public:
[ExtensionAttribute]
generic<typename TScope, typename TChild>
where TChild : IDisposable
static Task^ InChildWithin(
IChildContextualCreator<TScope, TChild>^ parent,
TScope maximumAccessScope,
Func<TChild, Task^>^ content
)
[<ExtensionAttribute>]
static member InChildWithin :
parent : IChildContextualCreator<'TScope, 'TChild> *
maximumAccessScope : 'TScope *
content : Func<'TChild, Task> -> Task when 'TChild : IDisposable
Parameters
- parent
- Type: AccessFlowIChildContextualCreatorTScope, TChild
The IChildContextualCreatorTScope, TChild
to create the child contextual,
typically another access contextual. - maximumAccessScope
- Type: TScope
The
- content
- Type: SystemFuncTChild, Task
The function operating on the new created child contextual.
Type Parameters
- TScope
- The type of the access scope.
- TChild
-
The type of the child contextual.
Return Value
Type:
Task
A representation of the asynchronous execution of this method.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IChildContextualCreatorTScope,
TChild. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also