Interception Behavior Pipeline

Microsoft Enterprise Library 5.0

DropDown image DropDownHover image Collapse image Expand image CollapseAll image ExpandAll image Copy image CopyHover image

You must add behaviors to the behavior pipeline to use them. The pipeline maintains a list of interception behaviors and manages them, calling them in the proper order with the correct inputs.

The following example adds a behavior and interceptor to a new interception behaviors pipeline.

First create an interception behaviors pipeline.

C# Copy Code
private InterceptionBehaviorPipeline pipeline = new InterceptionBehaviorPipeline();
Visual Basic Copy Code
Private pipeline As New InterceptionBehaviorPipeline()

Then add an interception behavior to the pipeline.

C# Copy Code
pipeline.Add(interceptor);
Visual Basic Copy Code
pipeline.Add(interceptor)