C# 클래스 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
상속: IActiveObject, IDisposable
파일 보기 프로젝트 열기: brandon-kohn/Meta

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
Guard ( ) : bool
Run ( ) : void

Core run method of this active thread

메소드 상세

ActiveObject() 공개 메소드

public ActiveObject ( ) : System
리턴 System

ActiveObject() 공개 메소드

public ActiveObject ( int maxStack ) : System
maxStack int
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Initialize() 공개 메소드

public Initialize ( string name, System.Action action ) : void
name string
action System.Action
리턴 void

Shutdown() 공개 메소드

Signals to shutdown this active object
public Shutdown ( ) : void
리턴 void

Signal() 공개 메소드

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