C# Class ProjToolV2.BackgroundExecutorWithStatus

Class responsible to execute csom calls in a background thread without impacting UI
Mostra file Open project: OfficeDev/Project-Samples Class Usage Examples

Public Methods

Method Description
BackgroundExecutorWithStatus ( TextBox control, string textToAnimate ) : System
Cancel ( ) : void
ExecuteWorker ( System.Action funcToRun ) : void

Private Methods

Method Description
actionWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
actionWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
actionWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Method Details

BackgroundExecutorWithStatus() public method

public BackgroundExecutorWithStatus ( TextBox control, string textToAnimate ) : System
control System.Windows.Forms.TextBox
textToAnimate string
return System

Cancel() public method

public Cancel ( ) : void
return void

ExecuteWorker() public method

public ExecuteWorker ( System.Action funcToRun ) : void
funcToRun System.Action
return void