Constructor BehaviorLoop
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
BehaviorLoop()
Initializes a new instance of the BehaviorLoop<T> class, a forward reference to a behavior with no definition at this point.
public BehaviorLoop()
Remarks
A loop only makes sense in a single transaction, thus one must be open - make it with Run<T>(Func<T>) or RunVoid(Action). Resolve the loop by calling Loop(Behavior<T>) before that transaction ends. A loop with no resolution is a defect, and not a no-op, thus this reports it as a defect.
Exceptions
- InvalidOperationException
Thrown when there is no explicit transaction open, or, at the end of that transaction, if Loop(Behavior<T>) was never called on this instance.