Class TryCatchDefinition

Assembly: redb.Route.dll

Scope-opener definition for the TryCatch EIP.
Inherits the leaf DSL from ; child steps
build the try body. Open catch branches with ,
optionally add a finally block with , close the scope with
.

public class TryCatchDefinition : RouteDefinitionBase<TryCatchDefinition>, IRouteDefinition, IProcessorDefinition, IRouteScope, IBranchingDefinition

Inheritance

Implements

Inherited Members

Properties

Branches

The catch/finally handler bodies — logical children outside Outputs (which

public IEnumerable<IProcessorDefinition> Branches { get; }

Methods

Catch(Type)

Opens a catch branch for the given exception type.

public CatchDefinition Catch(Type exceptionType)

Catch<TException>()

Opens a typed catch branch.

public CatchDefinition Catch<TException>() where TException : Exception

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

End()

Closes this scope and returns the parent .

public IRouteDefinition End()

EndTryCatch()

Closes this TryCatch scope and returns the parent route definition.

public IRouteDefinition EndTryCatch()

Finally()

Opens the Finally block.

public FinallyDefinition Finally()