Helper class that allows you to clear the states of components.
Description
The Cleaner class allows you to clear the state of components.
Static methods
ClearAsync
Clears the state of multiple components.
To be cleaned state components must implement the ICleanable interface. If they don’t, the call to this method has no effect.
public static
Task ClearAsync(string correlationId, IEnumerable components)
- correlationId: string - (optional) transaction id used to trace execution through the call chain.
- components: IEnumerable - list of components that are to be cleaned.
ClearOneAsync
Clears the state of a specific component. To be cleaned. state components must implement the ICleanable interface. If they don’t, the call to this method has no effect.
public static
Task ClearOneAsync(string correlationId, object component)
- correlationId: string - (optional) transaction id used to trace execution through the call chain.
- component: object - component that is to be cleaned.