Extensions.Call Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Call<C,T,R>(IFiber<C>, Rest<C,T>, T, Rest<C,R>) |
Scheduled a wait for the return value, then invoke the Call<C,T>(IFiber<C>, Rest<C,T>, T) method. |
Call<C,T>(IFiber<C>, Rest<C,T>, T) |
Push a frame on the stack, schedule a wait, and immediately satisfy that wait. |
Call<C,T,R>(IFiber<C>, Rest<C,T>, T, Rest<C,R>)
- Source:
- Extensions.cs
Scheduled a wait for the return value, then invoke the Call<C,T>(IFiber<C>, Rest<C,T>, T) method.
public static Microsoft.Bot.Builder.Internals.Fibers.IWait<C> Call<C,T,R> (this Microsoft.Bot.Builder.Internals.Fibers.IFiber<C> fiber, Microsoft.Bot.Builder.Internals.Fibers.Rest<C,T> invokeHandler, T item, Microsoft.Bot.Builder.Internals.Fibers.Rest<C,R> returnHandler);
static member Call : Microsoft.Bot.Builder.Internals.Fibers.IFiber<'C> * Microsoft.Bot.Builder.Internals.Fibers.Rest<'C, 'T> * 'T * Microsoft.Bot.Builder.Internals.Fibers.Rest<'C, 'R> -> Microsoft.Bot.Builder.Internals.Fibers.IWait<'C>
<Extension()>
Public Function Call(Of C, T, R) (fiber As IFiber(Of C), invokeHandler As Rest(Of C, T), item As T, returnHandler As Rest(Of C, R)) As IWait(Of C)
Type Parameters
- C
- T
- R
Parameters
- fiber
- IFiber<C>
- invokeHandler
- Rest<C,T>
- item
- T
- returnHandler
- Rest<C,R>
Returns
Applies to
Call<C,T>(IFiber<C>, Rest<C,T>, T)
- Source:
- Extensions.cs
Push a frame on the stack, schedule a wait, and immediately satisfy that wait.
public static Microsoft.Bot.Builder.Internals.Fibers.IWait<C> Call<C,T> (this Microsoft.Bot.Builder.Internals.Fibers.IFiber<C> fiber, Microsoft.Bot.Builder.Internals.Fibers.Rest<C,T> invokeHandler, T item);
static member Call : Microsoft.Bot.Builder.Internals.Fibers.IFiber<'C> * Microsoft.Bot.Builder.Internals.Fibers.Rest<'C, 'T> * 'T -> Microsoft.Bot.Builder.Internals.Fibers.IWait<'C>
<Extension()>
Public Function Call(Of C, T) (fiber As IFiber(Of C), invokeHandler As Rest(Of C, T), item As T) As IWait(Of C)
Type Parameters
- C
- T
Parameters
- fiber
- IFiber<C>
- invokeHandler
- Rest<C,T>
- item
- T
Returns
Remarks
This overload is used to allow a child to later call Done<C,T>(IFiber<C>, T) to satisfy an existing wait without scheduling a new wait for the child's return value.