RunnableComponent.cs
58 lines
| 1.1 KiB
| text/x-csharp
|
CSharpLexer
cin
|
r156 | using System; | ||
cin
|
r180 | using Implab.Formats; | ||
cin
|
r156 | |||
namespace Implab.Components { | ||||
public class RunnableComponent : Disposable, IRunnable, IInitializable { | ||||
cin
|
r157 | |||
cin
|
r156 | |||
cin
|
r158 | |||
cin
|
r156 | IPromise m_pending; | ||
Exception m_lastError; | ||||
protected RunnableComponent(bool initialized) { | ||||
cin
|
r158 | |||
cin
|
r156 | } | ||
#region IInitializable implementation | ||||
public void Init() { | ||||
} | ||||
#endregion | ||||
#region IRunnable implementation | ||||
public IPromise Start() { | ||||
cin
|
r158 | throw new NotImplementedException(); | ||
cin
|
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 | ||||
} | ||||
} | ||||