Microsoft.Bot.Builder.Internals.Fibers.Extensions Class Reference

Static Public Member Functions

static IWait< C > Call< C, T > (this IFiber< C > fiber, Rest< C, T > invokeHandler, T item)
 Push a frame on the stack, schedule a wait, and immediately satisfy that wait. More...
 
static IWait< C > Call< C, T, R > (this IFiber< C > fiber, Rest< C, T > invokeHandler, T item, Rest< C, R > returnHandler)
 Scheduled a wait for the return value, then invoke the Call<C, T>(IFiber<C>, Rest<C, T>, T) method. More...
 
static IWait< C > CloneTyped< C > (this IWait< C > wait)
 
static IWait< C > Done< C, T > (this IFiber< C > fiber, T item)
 Remove the frame from the stack, and satisfy the existing wait with the return value. More...
 
static IEnumerable< int > Enumerate (this Range< int > range)
 
static bool Equals< T > (this IReadOnlyList< T > one, IReadOnlyList< T > two, IEqualityComparer< T > comparer)
 
static IWait< C > Fail< C > (this IFiber< C > fiber, Exception error)
 
static V GetOrAdd< K, V > (this IDictionary< K, V > valueByKey, K key, Func< K, V > make)
 
static T GetValue< T > (this SerializationInfo info, string name)
 
static T Min< T > (T one, T two)
 
static T Peek< T > (this IReadOnlyList< T > stack)
 
static T Pop< T > (this List< T > stack)
 
static IWait< C > Post< C, T > (this IFiber< C > fiber, T item)
 
static void Push< T > (this IList< T > stack, T item)
 
static void Reset< C > (this IFiber< C > fiber)
 
static IEnumerable< Range< T > > SortedMerge< T > (this IEnumerable< Range< T >> oneItems, IEnumerable< Range< T >> twoItems)
 
static IReadOnlyList< R > ToList< T, R > (this IReadOnlyList< T > source, Func< T, R > selector)
 
static Task< T > ToTask< T > (this IAwaitable< T > item)
 
static void ValidateNeed (this IWait wait, Need need)
 
static IWait< C > Wait< C, T > (this IFiber< C > fiber, Rest< C, T > resumeHandler)
 Without pushing or popping the stack, schedule a wait to be satisfied later. More...
 

Detailed Description

Definition at line 76 of file Base/Extensions.cs.

Member Function Documentation

static IWait<C> Microsoft.Bot.Builder.Internals.Fibers.Extensions.Call< C, T > ( this IFiber< C >  fiber,
Rest< C, T >  invokeHandler,
item 
)
inlinestatic

Push a frame on the stack, schedule a wait, and immediately satisfy that wait.

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.

Definition at line 77 of file Fibers/Extensions.cs.

static IWait<C> Microsoft.Bot.Builder.Internals.Fibers.Extensions.Call< C, T, R > ( this IFiber< C >  fiber,
Rest< C, T >  invokeHandler,
item,
Rest< C, R >  returnHandler 
)
inlinestatic

Scheduled a wait for the return value, then invoke the Call<C, T>(IFiber<C>, Rest<C, T>, T) method.

Definition at line 61 of file Fibers/Extensions.cs.

static IWait<C> Microsoft.Bot.Builder.Internals.Fibers.Extensions.CloneTyped< C > ( this IWait< C >  wait)
inlinestatic

Definition at line 133 of file Fibers/Extensions.cs.

static IWait<C> Microsoft.Bot.Builder.Internals.Fibers.Extensions.Done< C, T > ( this IFiber< C >  fiber,
item 
)
inlinestatic

Remove the frame from the stack, and satisfy the existing wait with the return value.

Definition at line 91 of file Fibers/Extensions.cs.

static IEnumerable<int> Microsoft.Bot.Builder.Internals.Fibers.Extensions.Enumerate ( this Range< int >  range)
inlinestatic

Definition at line 99 of file Range.cs.

static bool Microsoft.Bot.Builder.Internals.Fibers.Extensions.Equals< T > ( this IReadOnlyList< T >  one,
IReadOnlyList< T >  two,
IEqualityComparer< T >  comparer 
)
inlinestatic

Definition at line 117 of file Base/Extensions.cs.

static IWait<C> Microsoft.Bot.Builder.Internals.Fibers.Extensions.Fail< C > ( this IFiber< C >  fiber,
Exception  error 
)
inlinestatic

Definition at line 115 of file Fibers/Extensions.cs.

static V Microsoft.Bot.Builder.Internals.Fibers.Extensions.GetOrAdd< K, V > ( this IDictionary< K, V >  valueByKey,
key,
Func< K, V >  make 
)
inlinestatic

Definition at line 105 of file Base/Extensions.cs.

static T Microsoft.Bot.Builder.Internals.Fibers.Extensions.GetValue< T > ( this SerializationInfo  info,
string  name 
)
inlinestatic

Definition at line 100 of file Base/Extensions.cs.

static T Microsoft.Bot.Builder.Internals.Fibers.Extensions.Min< T > ( one,
two 
)
inlinestatic
Type Constraints
T :IComparable<T> 

Definition at line 107 of file Range.cs.

static T Microsoft.Bot.Builder.Internals.Fibers.Extensions.Peek< T > ( this IReadOnlyList< T >  stack)
inlinestatic

Definition at line 90 of file Base/Extensions.cs.

static T Microsoft.Bot.Builder.Internals.Fibers.Extensions.Pop< T > ( this List< T >  stack)
inlinestatic

Definition at line 83 of file Base/Extensions.cs.

static IWait<C> Microsoft.Bot.Builder.Internals.Fibers.Extensions.Post< C, T > ( this IFiber< C >  fiber,
item 
)
inlinestatic

Definition at line 109 of file Fibers/Extensions.cs.

static void Microsoft.Bot.Builder.Internals.Fibers.Extensions.Push< T > ( this IList< T >  stack,
item 
)
inlinestatic

Definition at line 78 of file Base/Extensions.cs.

static void Microsoft.Bot.Builder.Internals.Fibers.Extensions.Reset< C > ( this IFiber< C >  fiber)
inlinestatic

Definition at line 101 of file Fibers/Extensions.cs.

static IEnumerable<Range<T> > Microsoft.Bot.Builder.Internals.Fibers.Extensions.SortedMerge< T > ( this IEnumerable< Range< T >>  oneItems,
IEnumerable< Range< T >>  twoItems 
)
inlinestatic
Type Constraints
T :IEquatable<T> 
T :IComparable<T> 

Definition at line 137 of file Range.cs.

static IReadOnlyList<R> Microsoft.Bot.Builder.Internals.Fibers.Extensions.ToList< T, R > ( this IReadOnlyList< T >  source,
Func< T, R >  selector 
)
inlinestatic

Definition at line 140 of file Base/Extensions.cs.

static Task<T> Microsoft.Bot.Builder.Internals.Fibers.Extensions.ToTask< T > ( this IAwaitable< T >  item)
inlinestatic

Definition at line 138 of file Fibers/Extensions.cs.

static void Microsoft.Bot.Builder.Internals.Fibers.Extensions.ValidateNeed ( this IWait  wait,
Need  need 
)
inlinestatic

Definition at line 125 of file Fibers/Extensions.cs.

static IWait<C> Microsoft.Bot.Builder.Internals.Fibers.Extensions.Wait< C, T > ( this IFiber< C >  fiber,
Rest< C, T >  resumeHandler 
)
inlinestatic

Without pushing or popping the stack, schedule a wait to be satisfied later.

Definition at line 50 of file Fibers/Extensions.cs.


The documentation for this class was generated from the following files: