C# Class Meta.ActiveObject

Implements a simple active object pattern implementation
Although there exists a vast number of active objects patterns (in Java they are just "runnable") scattered, one of the best I found is located at http://blog.gurock.com/wp-content/uploads/2008/01/activeobjects.pdf
Inheritance: IActiveObject, IDisposable
Afficher le fichier Open project: brandon-kohn/Meta

Méthodes publiques

Méthode Description
ActiveObject ( ) : System
ActiveObject ( int maxStack ) : System
Dispose ( ) : void
Initialize ( string name, System.Action action ) : void
Shutdown ( ) : void

Signals to shutdown this active object

Signal ( ) : void

Signal the active object to perform its loop action.

Application may call this after some simple of complex condition evaluation

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
Guard ( ) : bool
Run ( ) : void

Core run method of this active thread

Method Details

ActiveObject() public méthode

public ActiveObject ( ) : System
Résultat System

ActiveObject() public méthode

public ActiveObject ( int maxStack ) : System
maxStack int
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Initialize() public méthode

public Initialize ( string name, System.Action action ) : void
name string
action System.Action
Résultat void

Shutdown() public méthode

Signals to shutdown this active object
public Shutdown ( ) : void
Résultat void

Signal() public méthode

Signal the active object to perform its loop action.
Application may call this after some simple of complex condition evaluation
public Signal ( ) : void
Résultat void