##// END OF EJS Templates
Added ResetState to RunnableComponent to reset in case of failure...
Added ResetState to RunnableComponent to reset in case of failure Added StateChanged event to IRunnable Renamed Promise.SUCCESS -> Promise.Success Added Promise.FromException Renamed Bundle -> PromiseAll in PromiseExtensions

File last commit:

r205:8200ab154c8a v2
r205:8200ab154c8a v2
Show More
IRunnable.cs
22 lines | 556 B | text/x-csharp | CSharpLexer
using System;
namespace Implab.Components {
public interface IRunnable {
/// <summary>
/// Starts this instance.
/// </summary>
IPromise Start();
/// <summary>
/// Stops this instance. After the instance is stopped it can't be started again, stopping should be treated as gracefull and async dispose.
/// </summary>
IPromise Stop();
ExecutionState State { get; }
event EventHandler<StateChangeEventArgs> StateChanged;
Exception LastError { get; }
}
}