C# 클래스 Habanero.Base.HabaneroBackgroundWorker

Helper class to facilitate asynchronous workers on pre-dotnet-4.5 machines, using the native system threading model and an abstraction for synchronisation with the UI thread for user feedback on completion and exception
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

메소드 설명
Run ( IActionDispatcher dispatcher, object>.ConcurrentDictionary data, BackgroundWorkerMethodDelegate backgroundWorker, UIWorkerMethodDelegate onSuccess, UIWorkerMethodDelegate onCancel, BackgroundWorkerExceptionHandlerDelegate onException ) : HabaneroBackgroundWorker

Convenience method for creating an HabaneroBackgroundWorker.

Run ( ) : void

Starts the new thread.

WaitForBackgroundWorkerToComplete ( ) : void

Waits for the thread to end.

비공개 메소드들

메소드 설명
RunBackgroundWorker ( ) : void
RunExceptionDelegate ( Exception ex ) : void
RunUIWorkerDelegate ( bool success ) : void

메소드 상세

Run() 공개 정적인 메소드

Convenience method for creating an HabaneroBackgroundWorker.
public static Run ( IActionDispatcher dispatcher, object>.ConcurrentDictionary data, BackgroundWorkerMethodDelegate backgroundWorker, UIWorkerMethodDelegate onSuccess, UIWorkerMethodDelegate onCancel, BackgroundWorkerExceptionHandlerDelegate onException ) : HabaneroBackgroundWorker
dispatcher IActionDispatcher
data object>.ConcurrentDictionary
backgroundWorker BackgroundWorkerMethodDelegate
onSuccess UIWorkerMethodDelegate
onCancel UIWorkerMethodDelegate
onException BackgroundWorkerExceptionHandlerDelegate
리턴 HabaneroBackgroundWorker

Run() 공개 메소드

Starts the new thread.
public Run ( ) : void
리턴 void

WaitForBackgroundWorkerToComplete() 공개 메소드

Waits for the thread to end.
public WaitForBackgroundWorkerToComplete ( ) : void
리턴 void