Class AlgorithmBase
Abstract representation of an algorithm.
Inheritance
System.Object
AlgorithmBase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public abstract class AlgorithmBase : IAlgorithm
Properties
ErrorMessage
Returns an error message when the algorithm was not successful.
Declaration
public string ErrorMessage { get; protected set; }
Property Value
System.String
|
Implements
HasRun
Returns true if this instance has run already.
Declaration
public bool HasRun { get; protected set; }
Property Value
System.Boolean
|
Implements
HasSucceeded
Returns true if this instance has run and it was succesfull.
Declaration
public bool HasSucceeded { get; protected set; }
Property Value
System.Boolean
|
Implements
Methods
CheckHasRun()
Checks if HasRun is true and throw an exception if not.
Declaration
public void CheckHasRun()
CheckHasRunAndHasSucceeded()
Checks if HasRun and HasSucceeded is true and throws exception if not.
Declaration
public void CheckHasRunAndHasSucceeded()
DoRun(CancellationToken)
Executes the actual run of the algorithm.
Declaration
protected abstract void DoRun(CancellationToken cancellationToken)
Parameters
CancellationToken
cancellationToken
|
Run()
Run(CancellationToken)
Runs the algorithm.
Declaration
public void Run(CancellationToken cancellationToken)
Parameters
CancellationToken
cancellationToken
|