C# Class Open.Core.Common.ModelBase

The base class for models.
Inheritance: NotifyPropertyChangedBase
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL

Méthodes publiques

Méthode Description
ModelBase ( ) : System

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

BeginInvoke() protected méthode

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.
Résultat System.ComponentModel.BackgroundWorker

BeginInvoke() protected méthode

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. ///
Résultat System.ComponentModel.BackgroundWorker

InvokeOnUiThread() protected méthode

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

ModelBase() public méthode

public ModelBase ( ) : System
Résultat System