##// END OF EJS Templates
Working on runnable component
Working on runnable component

File last commit:

r250:9f63dade3a40 v3
r250:9f63dade3a40 v3
Show More
IRunnable.cs
29 lines | 806 B | text/x-csharp | CSharpLexer
cin
component model refactoring
r152 using System;
cin
Working on runnable component
r250 using System.Threading;
using System.Threading.Tasks;
cin
component model refactoring
r152
namespace Implab.Components {
cin
Working on runnable component
r250 /// <summary>
/// Interface for the component which performs a long running task.
cin
RunnableComponent.Dispose(bool,Exception) changed to standart Dispose(bool)...
r208 /// </summary>
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
Working on runnable component
r250 void Start(CancellationToken ct);
cin
component model refactoring
r152
cin
Added 'Fail' method to RunnableComponent which allows component to move from...
r203 /// <summary>
cin
Working on runnable component
r250 /// Stops this instance and releases all resources, after the instance is stopped it is moved to Disposed state and can't be reused.
cin
Added 'Fail' method to RunnableComponent which allows component to move from...
r203 /// </summary>
cin
Working on runnable component
r250 void Stop(CancellationToken ct);
Task<ExecutionState> Completion { get; }
cin
component model refactoring
r152
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; }
}
}