Habanero.Base.HabaneroBackgroundWorker.Run C# (CSharp) Method

Run() public static method

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
return HabaneroBackgroundWorker
        public static HabaneroBackgroundWorker Run(IActionDispatcher dispatcher, ConcurrentDictionary<string, object> data, BackgroundWorkerMethodDelegate backgroundWorker, UIWorkerMethodDelegate onSuccess, UIWorkerMethodDelegate onCancel, BackgroundWorkerExceptionHandlerDelegate onException)
        {
            var runner = new HabaneroBackgroundWorker()
                {
                    ActionDispatcher = dispatcher,
                    BackgroundWorker = backgroundWorker,
                    OnSuccess = onSuccess,
                    OnCancelled = onCancel,
                    OnException = onException,
                    Data = data
                };
            runner.Run();
            return runner;
        }
    }

Same methods

HabaneroBackgroundWorker::Run ( ) : void

Usage Example

Example #1
0
 public static HabaneroBackgroundWorker Run(this HabaneroBackgroundWorker self, Control uiControl,
                                            ConcurrentDictionary <string, object> data,
                                            HabaneroBackgroundWorker.BackgroundWorkerMethodDelegate backgroundWorker,
                                            HabaneroBackgroundWorker.UIWorkerMethodDelegate onSuccess,
                                            HabaneroBackgroundWorker.UIWorkerMethodDelegate onCancel,
                                            HabaneroBackgroundWorker.BackgroundWorkerExceptionHandlerDelegate onException)
 {
     return(HabaneroBackgroundWorker.Run(new ActionDispatcher(uiControl), data, backgroundWorker, onSuccess, onCancel, onException));
 }
All Usage Examples Of Habanero.Base.HabaneroBackgroundWorker::Run