C# Class Open.Core.Common.ModelBase

The base class for models.
Inheritance: NotifyPropertyChangedBase
Datei anzeigen Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
ModelBase ( ) : System

Protected Methods

Method Description
BeginInvoke ( System.Action action ) : BackgroundWorker

Invokes an action asynchonously.

BeginInvoke ( System.Action action, System.Action onComplete ) : BackgroundWorker

Invokes an action asynchonously and then calls back when complete on the thread that began the invocation.

The callback will be invoked irrespective of whether the operation was cancelled via the BackgroundWorker object. If supporting cancellable operations, use your reference to the 'BackgroundWorker' to handle cancelled operations within the calling code.

BeginInvoke ( System.Action action, Action onComplete ) : BackgroundWorker

Invokes an action asynchonously and then calls back when complete on the thread that began the invocation.

The callback will be invoked irrespective of whether the operation was cancelled via the BackgroundWorker object. If supporting cancellable operations, use your reference to the 'BackgroundWorker' to handle cancelled operations within the calling code.

InvokeOnUiThread ( System.Action action ) : void

Invokes the given action on the UI thread synchronously.

Private Methods

Method Description
InvokeAsynchronous ( System.Action action, Action onComplete ) : BackgroundWorker
InvokeSynchronous ( System.Action action, Action onComplete ) : void
OnAsyncError ( AsyncCallbackArgs e ) : void
ProcessAction ( System.Action action ) : AsyncCallbackArgs

Method Details

BeginInvoke() protected method

Invokes an action asynchonously.
protected BeginInvoke ( System.Action action ) : BackgroundWorker
action System.Action The action to invoke.
return System.ComponentModel.BackgroundWorker

BeginInvoke() protected method

Invokes an action asynchonously and then calls back when complete on the thread that began the invocation.
The callback will be invoked irrespective of whether the operation was cancelled via the BackgroundWorker object. If supporting cancellable operations, use your reference to the 'BackgroundWorker' to handle cancelled operations within the calling code.
protected BeginInvoke ( System.Action action, System.Action onComplete ) : BackgroundWorker
action System.Action The action to invoke.
onComplete System.Action The callback to invoke when complete.
return System.ComponentModel.BackgroundWorker

BeginInvoke() protected method

Invokes an action asynchonously and then calls back when complete on the thread that began the invocation.
The callback will be invoked irrespective of whether the operation was cancelled via the BackgroundWorker object. If supporting cancellable operations, use your reference to the 'BackgroundWorker' to handle cancelled operations within the calling code.
protected BeginInvoke ( System.Action action, Action onComplete ) : BackgroundWorker
action System.Action The action to invoke.
onComplete Action /// The callback to invoke when complete, including error state. /// Use the IsHandled property to prevent the error from being thrown. ///
return System.ComponentModel.BackgroundWorker

InvokeOnUiThread() protected method

Invokes the given action on the UI thread synchronously.
protected InvokeOnUiThread ( System.Action action ) : void
action System.Action The action to invoke.
return void

ModelBase() public method

public ModelBase ( ) : System
return System