Class WeaveTarget

Assembly: redb.Route.TestKit.dll

The steps selected by ,
or , ready to be replaced, wrapped or removed
(Apache Camel weaveById(...).replace() / .before() / .after() / .remove()).
New steps are written with the ordinary route DSL: t.Replace(r => r.To("mock://x")).

public sealed class WeaveTarget

Inheritance

Object→WeaveTarget

Properties

Count

Number of steps selected.

public int Count { get; }

Methods

After(Action<IRouteDefinition>)

Inserts the steps built by steps after each selected step.

public AdviceWithBuilder After(Action<IRouteDefinition> steps)

Before(Action<IRouteDefinition>)

Inserts the steps built by steps before each selected step.

public AdviceWithBuilder Before(Action<IRouteDefinition> steps)

Remove()

Removes each selected step.

public AdviceWithBuilder Remove()

Replace(Action<IRouteDefinition>)

Replaces each selected step with the steps built by steps.

public AdviceWithBuilder Replace(Action<IRouteDefinition> steps)