##// END OF EJS Templates
Слияние
Слияние

File last commit:

r208:7d07503621fe v2
r232:133ba4444acc merge v2
Show More
IRunnable.cs
30 lines | 1.0 KiB | text/x-csharp | CSharpLexer
cin
component model refactoring
r152 using System;
namespace Implab.Components {
cin
RunnableComponent.Dispose(bool,Exception) changed to standart Dispose(bool)...
r208 /// <summary>
/// Interface for the component which performs a long running task.
/// </summary>
/// <remarks>
/// <para>The component also should implement <see cref="IDisposable"/> interface to be able to release used resources.</para>
/// <para>All methods of this interface must be a thread safe. If the operation is not applicable in the current state the
/// method should throw an exception and keep the current state unchanged.</para>
/// </remarks>
public interface IRunnable : IDisposable {
cin
Added 'Fail' method to RunnableComponent which allows component to move from...
r203 /// <summary>
cin
RunnableComponent.Dispose(bool,Exception) changed to standart Dispose(bool)...
r208 /// Starts this instance
cin
Added 'Fail' method to RunnableComponent which allows component to move from...
r203 /// </summary>
cin
component model refactoring
r152 IPromise Start();
cin
Added 'Fail' method to RunnableComponent which allows component to move from...
r203 /// <summary>
cin
RunnableComponent.Dispose(bool,Exception) changed to standart Dispose(bool)...
r208 /// Stops this instance, after the instance is stopped it can move to Failed, Ready or Disposed state, in case with the last it can't be reused.
cin
Added 'Fail' method to RunnableComponent which allows component to move from...
r203 /// </summary>
cin
component model refactoring
r152 IPromise Stop();
ExecutionState State { get; }
cin
Added ResetState to RunnableComponent to reset in case of failure...
r205 event EventHandler<StateChangeEventArgs> StateChanged;
cin
component model refactoring
r152 Exception LastError { get; }
}
}