Show / Hide Table of Contents

Class TPLBooleanAndWorkDistributor

An IWorkDistributor<R> that combines the results using the boolean And operator.

Inheritance
object
TPLWorkDistributor
TPLBooleanAndWorkDistributor
Implements
IWorkDistributor<bool>
IWorkDistributor
Inherited Members
TPLWorkDistributor.Execute(IReadOnlyList<Action>)
TPLWorkDistributor.Execute<R>(IReadOnlyList<Func<R>>)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SpiceSharp.Components.ParallelComponents
Assembly: SpiceSharp.dll
Syntax
public class TPLBooleanAndWorkDistributor : TPLWorkDistributor, IWorkDistributor<bool>, IWorkDistributor

Methods

Execute(IReadOnlyList<Func<bool>>)

Executes the specified methods and accumulates the result.

Declaration
public bool Execute(IReadOnlyList<Func<bool>> methods)
Parameters
Type Name Description
IReadOnlyList<Func<bool>> methods

The methods to be executed.

Returns
Type Description
bool

The combined result.

Exceptions
Type Condition
ArgumentNullException

Thrown if methods is null.

Implements

IWorkDistributor<R>
IWorkDistributor

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

IWorkDistributor<R>
In this article
Back to top Generated by DocFX