C# Class NServiceBus.Pipeline.RegisterStep

Base class to do an advance registration of a step.
Show file Open project: Particular/NServiceBus Class Usage Examples

Private Properties

Property Type Description
ApplyContainerRegistration void
Create RegisterStep
CreateBehavior IBehavior
Replace void

Public Methods

Method Description
InsertAfter ( string id ) : void

Instructs the pipeline to register this step after the id one.

InsertAfterIfExists ( string id ) : void

Instructs the pipeline to register this step after the id one. If the id does not exist, this condition is ignored.

InsertBefore ( string id ) : void

Instructs the pipeline to register this step before the id one.

InsertBeforeIfExists ( string id ) : void

Instructs the pipeline to register this step before the id one. If the id does not exist, this condition is ignored.

IsEnabled ( ReadOnlySettings settings ) : bool

Checks if this behavior is enabled.

Protected Methods

Method Description
RegisterStep ( string stepId, Type behavior, string description, IBehavior>.Func factoryMethod = null ) : System

Initializes a new instance of the RegisterStep class.

Private Methods

Method Description
ApplyContainerRegistration ( ReadOnlySettings settings, IConfigureComponents container ) : void
Create ( string pipelineStep, Type behavior, string description, IBehavior>.Func factoryMethod = null ) : RegisterStep
CreateBehavior ( IBuilder defaultBuilder ) : IBehavior
Replace ( ReplaceStep replacement ) : void

Method Details

InsertAfter() public method

Instructs the pipeline to register this step after the id one.
public InsertAfter ( string id ) : void
id string
return void

InsertAfterIfExists() public method

Instructs the pipeline to register this step after the id one. If the id does not exist, this condition is ignored.
public InsertAfterIfExists ( string id ) : void
id string The unique identifier of the step that we want to insert after.
return void

InsertBefore() public method

Instructs the pipeline to register this step before the id one.
public InsertBefore ( string id ) : void
id string
return void

InsertBeforeIfExists() public method

Instructs the pipeline to register this step before the id one. If the id does not exist, this condition is ignored.
public InsertBeforeIfExists ( string id ) : void
id string The unique identifier of the step that we want to insert before.
return void

IsEnabled() public method

Checks if this behavior is enabled.
public IsEnabled ( ReadOnlySettings settings ) : bool
settings ReadOnlySettings
return bool

RegisterStep() protected method

Initializes a new instance of the RegisterStep class.
protected RegisterStep ( string stepId, Type behavior, string description, IBehavior>.Func factoryMethod = null ) : System
stepId string The unique identifier for this steps.
behavior System.Type The type of to register.
description string A brief description of what this step does.
factoryMethod IBehavior>.Func A factory method for creating the behavior.
return System