Skip to content

Commit

Permalink
Created a partial for v8 disabling a behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayanthi Sourirajan authored and Jayanthi Sourirajan committed Sep 2, 2021
1 parent d994951 commit 85b9ccd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
12 changes: 1 addition & 11 deletions nservicebus/pipeline/manipulate-with-behaviors.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,7 @@ partial: pipelinecheck

partial: registerorreplace


## Disable an existing step

To disable the implementation of an existing step, substitute it with a no action behavior:

snippet: NoActionPipelineBehavior

The behaviour does nothing and calls the next step in the pipeline chain by invoking `next()`.

snippet: NoActionPipelineStep

partial: disable

## Exception handling

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Disable an existing step

To disable the implementation of an existing step, substitute it with a no action behavior:

snippet: NoActionPipelineBehavior

The behaviour does nothing and calls the next step in the pipeline chain by invoking `next()`.

snippet: NoActionPipelineStep
2 changes: 1 addition & 1 deletion nservicebus/upgrades/7to8/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ With all currently-supported transports now supporting native delayed delivery,

## Removing a behaviour from the pipeline is obsolete

The `Remove` command is no longer available in `PipelineSettings`. In order to disable a behavior, [replace the behavior](/nservicebus/pipeline/manipulate-with-behaviors.md#disable-an-existing-step) with an empty one.
The `Remove` command is no longer available in `PipelineSettings`. In order to disable a behavior, [replace the behavior](/nservicebus/pipeline/manipulate-with-behaviors.md?version=core_8#disable-an-existing-step) with an empty one.

### Data migration

Expand Down

0 comments on commit 85b9ccd

Please sign in to comment.