Registers an action to perform around all other actions
currently in the chain. The contained part of the chain
is passed in as an action to the decorator that the decorator
can choose to run (or not) as needed.
Namespace:
Gallio.CommonAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public void Around( ActionDecorator decorator ) |
| Visual Basic (Declaration) |
|---|
Public Sub Around ( _ decorator As ActionDecorator _ ) |
Parameters
- decorator
- Type: Gallio.Common..::.ActionDecorator
The decorator to register.
Remarks
The value of Action will be set to a new instance that performs the specified decorator around the current Action.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if decorator is null. |
