Share via


Interception Behavior Pipeline

patterns & practices Developer Center

Download codeDownload PDFOrder Paperback

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.

private InterceptionBehaviorPipeline pipeline = new InterceptionBehaviorPipeline();
Private pipeline As New InterceptionBehaviorPipeline()

Then add an interception behavior to the pipeline.

pipeline.Add(interceptor);
pipeline.Add(interceptor)

Next Topic | Previous Topic | Home | Community