Show / Hide Table of Contents

Class ExecutionExtensions

Extension methods to help execution.

Inheritance
System.Object
ExecutionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fluency.Execution.Extensions
Assembly: Execution.dll
Syntax
public static class ExecutionExtensions

Methods

| Improve this Doc View Source

EnqueueRange<T>(Queue<T>, IEnumerable<T>)

Puts everything in range into the queue.

Declaration
public static void EnqueueRange<T>(this Queue<T> queue, IEnumerable<T> range)
Parameters
Type Name Description
System.Collections.Generic.Queue<T> queue
System.Collections.Generic.IEnumerable<T> range
Type Parameters
Name Description
T
| Improve this Doc View Source

Is<T>(IFunction, String)

Asserts that this IFunction also implements interface T, usually one of the I[Top|Bottom][InOut] interfaces.

Declaration
public static T Is<T>(this IFunction function, string extraInfo = null)
    where T : IFunction
Parameters
Type Name Description
IFunction function
System.String extraInfo

Will be added to the exception, if thrown.

Returns
Type Description
T
Type Parameters
Name Description
T
Exceptions
Type Condition
ExecutionException

Thrown if function is not a T

| Improve this Doc View Source

TryDequeue<T>(Queue<T>, out T)

Try to get a value from queue. Returns true if it found one.

Declaration
public static bool TryDequeue<T>(this Queue<T> queue, out T value)
Parameters
Type Name Description
System.Collections.Generic.Queue<T> queue
T value
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
  • Improve this Doc
  • View Source
Back to top Generated by DocFX