C# 클래스 slimCat.Utilities.Extensions.DispatcherExtensions

파일 보기 프로젝트 열기: WreckedAvent/slimCat

공개 메소드들

메소드 설명
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.

메소드 상세

InvokeWithRetry() 공개 정적인 메소드

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