메소드 | 설명 | |
---|---|---|
InvokeWithRetry ( this dispatcher, System.Action toInvoke, int maxRetries = 3, int currentRetries ) : void |
Invokes a Dispatcher.Invoke(Action) with a retry mechanism, suitable for potentially long-running tasks that might fail or be cancelled. If the number of retries is exceeded, the Exception that caused the failure will be rethrown.
|
public static InvokeWithRetry ( this dispatcher, System.Action toInvoke, int maxRetries = 3, int currentRetries ) : void | ||
dispatcher | this | The dispatcher. |
toInvoke | System.Action | The action to invoke. |
maxRetries | int | The maximum number of retries. |
currentRetries | int | The current number of retries. |
리턴 | void |