RunnableComponent.cs
58 lines
| 1.1 KiB
| text/x-csharp
|
CSharpLexer
|
|
r156 | using System; | ||
| using Implab.Parsing; | ||||
| namespace Implab.Components { | ||||
| public class RunnableComponent : Disposable, IRunnable, IInitializable { | ||||
|
|
r157 | |||
|
|
r156 | |||
|
|
r158 | |||
|
|
r156 | IPromise m_pending; | ||
| Exception m_lastError; | ||||
| protected RunnableComponent(bool initialized) { | ||||
|
|
r158 | |||
|
|
r156 | } | ||
| #region IInitializable implementation | ||||
| public void Init() { | ||||
| } | ||||
| #endregion | ||||
| #region IRunnable implementation | ||||
| public IPromise Start() { | ||||
|
|
r158 | throw new NotImplementedException(); | ||
|
|
r156 | } | ||
| protected virtual IPromise OnStart() { | ||||
| return Promise.SUCCESS; | ||||
| } | ||||
| protected virtual void Run() { | ||||
| } | ||||
| public IPromise Stop() { | ||||
| throw new NotImplementedException(); | ||||
| } | ||||
| public ExecutionState State { | ||||
| get { | ||||
| throw new NotImplementedException(); | ||||
| } | ||||
| } | ||||
| public Exception LastError { | ||||
| get { | ||||
| throw new NotImplementedException(); | ||||
| } | ||||
| } | ||||
| #endregion | ||||
| } | ||||
| } | ||||
