An IExecutor that can be used for a PoolFiber to catch and log or forward exceptions that happen during execution. More...
Public Member Functions | |
FailSafeBatchExecutor () | |
Initializes a new instance of the FailSafeBatchExecutor class that logs all exceptions to a ILogger. More... | |
FailSafeBatchExecutor (Action< Exception > exceptionHandler) | |
Initializes a new instance of the FailSafeBatchExecutor class that forwards all exceptions to a custom exception handler. More... | |
virtual void | Execute (System.Collections.Generic.List< IFiberAction > actionList) |
Executes a list of actions with Execute(IFiberAction). More... | |
virtual void | Execute (IFiberAction action) |
Executes an action and forwards exceptions to the assigned exception handler. More... | |
Public Member Functions inherited from ExitGames.Concurrency.Core.IExecutor | |
void | Execute (List< IFiberAction > toExecute) |
Executes all actions. More... | |
Properties | |
bool | IsEnabled [get, set] |
Gets or sets a value indicating whether the executor is enabled. When disabled, actions will be ignored by executor. The executor is typically disabled at shutdown to prevent any pending actions from being executed. More... | |
An IExecutor that can be used for a PoolFiber to catch and log or forward exceptions that happen during execution.
|
inline |
Initializes a new instance of the FailSafeBatchExecutor class that logs all exceptions to a ILogger.
|
inline |
Initializes a new instance of the FailSafeBatchExecutor class that forwards all exceptions to a custom exception handler.
exceptionHandler | The exception handler. |
|
inlinevirtual |
Executes an action and forwards exceptions to the assigned exception handler.
action | The action. |
Implements ExitGames.Concurrency.Core.IExecutor.
Reimplemented in ExitGames.Threading.ExtendedFailSafeExecutor.
|
inlinevirtual |
Executes a list of actions with Execute(IFiberAction).
actionList | The action list. |
|
getset |
Gets or sets a value indicating whether the executor is enabled. When disabled, actions will be ignored by executor. The executor is typically disabled at shutdown to prevent any pending actions from being executed.