Interface DelayAction.IGroup
- Namespace
- Ecng.Serialization
- Assembly
- Ecng.Serialization.dll
Represents a group of delayed actions.
public interface DelayAction.IGroup
- Extension Methods
Methods
Add(Action, Action<Exception>, bool, bool)
Adds an action to the group.
void Add(Action action, Action<Exception> postAction = null, bool canBatch = true, bool breakBatchOnError = true)
Parameters
actionActionThe action to execute.
postActionAction<Exception>An action to execute after the main action, with an exception parameter if an error occurred.
canBatchboolDetermines if the action can be batched.
breakBatchOnErrorboolDetermines if batching should break on error.
Add(Action<IDisposable>, Action<Exception>, bool, bool)
Adds an action that receives an IDisposable scope to the group.
void Add(Action<IDisposable> action, Action<Exception> postAction = null, bool canBatch = true, bool breakBatchOnError = true)
Parameters
actionAction<IDisposable>The action to execute with the provided scope.
postActionAction<Exception>An action to execute after the main action, with an exception parameter if an error occurred.
canBatchboolDetermines if the action can be batched.
breakBatchOnErrorboolDetermines if batching should break on error.
WaitFlush(bool)
Waits until all actions in the group have been flushed.
void WaitFlush(bool dispose)
Parameters
disposeboolDetermines if the DelayAction instance should be disposed after flushing.