An NDoc Documented Class Library

IChain Methods

The methods of the IChain interface are listed below. For a complete list of IChain interface members, see the IChain Members topic.

Public Instance Methods

addCommand Adds ICommand to list of IChain's commands. It is not possible to add ICommand to IChain's commands list while IChain is processing IContext (IChain's commands list during request execution is frozen) - such try will cause an exception.
addCommands Adds list of commands to current IChain's commands. It is not possible to add commands to IChain's commands list while IChain is processing IContext (IChain's commands list during request execution is frozen) - such try will cause an exception.
execute Execute IContext processing by calling execute method of all commands that are in IChain's commands list (starting from first ICommand in that list to the last one). Execution rules: - IContext execution while IChain dosn't contain any ICommand will cause that execute method will return false - when IChain's commands list contains IFilter commands then call their postProcess method starting from last executed IFilter type command to the first one that was executed. - when one of the Chain's commands throws an exception during execution and that command is not an IFilter then rethrow that exception - if none of above cases happens then return value returned by execute method of last ICommand that was executed

See Also

IChain Interface | NChain Namespace