Class Flow

Inheritance
object
Flow
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: FlowSemantics
Assembly: FlowSemantics.dll
Syntax
public sealed class Flow

Methods

| Edit this page View Source

CatchAny(ExceptionHandler, string)

Declaration
public Flow CatchAny(Flow.ExceptionHandler handler, string id)
Parameters
Type Name Description
Flow.ExceptionHandler handler
string id
Returns
Type Description
Flow
| Edit this page View Source

CatchTyped(string, ExceptionHandler, string)

Declaration
public Flow CatchTyped(string excKind, Flow.ExceptionHandler handler, string id)
Parameters
Type Name Description
string excKind
Flow.ExceptionHandler handler
string id
Returns
Type Description
Flow
| Edit this page View Source

CatchWhen(string, ExceptionPredicate, ExceptionHandler, string)

Declaration
public Flow CatchWhen(string excKind, Flow.ExceptionPredicate pred, Flow.ExceptionHandler handler, string id)
Parameters
Type Name Description
string excKind
Flow.ExceptionPredicate pred
Flow.ExceptionHandler handler
string id
Returns
Type Description
Flow
| Edit this page View Source

Compile()

Declaration
public Flow.FlowContract Compile()
Returns
Type Description
Flow.FlowContract
| Edit this page View Source

Create()

Declaration
public static Flow Create()
Returns
Type Description
Flow
| Edit this page View Source

DefaultIfNoMatch(object?)

Declaration
public Flow DefaultIfNoMatch(object? value)
Parameters
Type Name Description
object value
Returns
Type Description
Flow
| Edit this page View Source

DefaultValue(object?)

Declaration
public Flow DefaultValue(object? value)
Parameters
Type Name Description
object value
Returns
Type Description
Flow
| Edit this page View Source

Finally(CleanupFn)

Declaration
public Flow Finally(Flow.CleanupFn cleanup)
Parameters
Type Name Description
Flow.CleanupFn cleanup
Returns
Type Description
Flow
| Edit this page View Source

FromIr(JsonNode)

Declaration
public static Flow FromIr(JsonNode ir)
Parameters
Type Name Description
JsonNode ir
Returns
Type Description
Flow
| Edit this page View Source

OnMatch(HookFn)

Declaration
public Flow OnMatch(Flow.HookFn hook)
Parameters
Type Name Description
Flow.HookFn hook
Returns
Type Description
Flow
| Edit this page View Source

Otherwise(ActionFn)

Declaration
public Flow Otherwise(Flow.ActionFn action)
Parameters
Type Name Description
Flow.ActionFn action
Returns
Type Description
Flow
| Edit this page View Source

Rethrow()

Declaration
public Flow Rethrow()
Returns
Type Description
Flow
| Edit this page View Source

Then(ActionFn, string)

Declaration
public Flow Then(Flow.ActionFn action, string id)
Parameters
Type Name Description
Flow.ActionFn action
string id
Returns
Type Description
Flow
| Edit this page View Source

When(ConditionFn, ActionFn, string, GuardFn?, int, List<Effect>?, long?, long?)

Declaration
public Flow When(Flow.ConditionFn cond, Flow.ActionFn action, string id, Flow.GuardFn? guard = null, int priority = 0, List<Effect>? effects = null, long? effectiveFrom = null, long? effectiveUntil = null)
Parameters
Type Name Description
Flow.ConditionFn cond
Flow.ActionFn action
string id
Flow.GuardFn guard
int priority
List<Effect> effects
long? effectiveFrom
long? effectiveUntil
Returns
Type Description
Flow
| Edit this page View Source

WhenExpr(PExpr, PExpr, string, List<Effect>?)

Declaration
public Flow WhenExpr(Portable.PExpr cond, Portable.PExpr transform, string id, List<Effect>? effects = null)
Parameters
Type Name Description
Portable.PExpr cond
Portable.PExpr transform
string id
List<Effect> effects
Returns
Type Description
Flow
| Edit this page View Source

WhenNot(ConditionFn, ActionFn, string, long?, long?)

Declaration
public Flow WhenNot(Flow.ConditionFn cond, Flow.ActionFn action, string id, long? effectiveFrom = null, long? effectiveUntil = null)
Parameters
Type Name Description
Flow.ConditionFn cond
Flow.ActionFn action
string id
long? effectiveFrom
long? effectiveUntil
Returns
Type Description
Flow
| Edit this page View Source

WhenNotExpr(PExpr, PExpr, string, List<Effect>?)

Declaration
public Flow WhenNotExpr(Portable.PExpr cond, Portable.PExpr transform, string id, List<Effect>? effects = null)
Parameters
Type Name Description
Portable.PExpr cond
Portable.PExpr transform
string id
List<Effect> effects
Returns
Type Description
Flow
| Edit this page View Source

WithCancelCheck(Func<bool>)

Declaration
public Flow WithCancelCheck(Func<bool> check)
Parameters
Type Name Description
Func<bool> check
Returns
Type Description
Flow
| Edit this page View Source

WithClock(IClock)

Declaration
public Flow WithClock(IClock clock)
Parameters
Type Name Description
IClock clock
Returns
Type Description
Flow
| Edit this page View Source

WithFinallyPolicy(FinallyFailurePolicy)

Declaration
public Flow WithFinallyPolicy(FinallyFailurePolicy policy)
Parameters
Type Name Description
FinallyFailurePolicy policy
Returns
Type Description
Flow
| Edit this page View Source

WithFinallyTimeout(long)

Declaration
public Flow WithFinallyTimeout(long ms)
Parameters
Type Name Description
long ms
Returns
Type Description
Flow
| Edit this page View Source

WithFlowId(string)

Declaration
public Flow WithFlowId(string id)
Parameters
Type Name Description
string id
Returns
Type Description
Flow
| Edit this page View Source

WithMode(EvaluationMode)

Declaration
public Flow WithMode(EvaluationMode mode)
Parameters
Type Name Description
EvaluationMode mode
Returns
Type Description
Flow
| Edit this page View Source

WithTrace()

Declaration
public Flow WithTrace()
Returns
Type Description
Flow
| Edit this page View Source

WithTrace(DiagnosticHook)

Declaration
public Flow WithTrace(DiagnosticHook hook)
Parameters
Type Name Description
DiagnosticHook hook
Returns
Type Description
Flow
  • Edit this page
  • View Source
In this article
Back to top Apache-2.0 — github.com/sancy1/flowsemantics