##// END OF EJS Templates
Implab.Diagnostics drafts
Implab.Diagnostics drafts

File last commit:

r251:7c7e9ad6fe4a v3
r253:34df34841225 v3.0.1-beta v3
Show More
IRunnable.cs
59 lines | 2.0 KiB | 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>
cin
Prerelease version of RunnableComponent...
r251 /// <remarks>
/// The access to the runnable component should be sequential, the
/// componet should support asynchronous completion of the initiated
/// operation but operations itself must be initiated sequentially.
/// </remarks>
public interface IRunnable {
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
Prerelease version of RunnableComponent...
r251 /// <remarks>
/// This operation is cancellable and it's expected to move to
/// the failed state or just ignore the cancellation request,
/// </remarks>
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
Prerelease version of RunnableComponent...
r251 /// 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
Prerelease version of RunnableComponent...
r251 /// <remarks>
/// If the componet was in the starting state the pending operation
/// will be requested to cancel. The stop operatin will be
/// performed only if the component in the running state.
/// </remarks>
cin
Working on runnable component
r250 void Stop(CancellationToken ct);
cin
Prerelease version of RunnableComponent...
r251 /// <summary>
/// The result of the last started operation. This property reflects
/// only the result of the last started operation and therefore should
/// change only if a new operation is initiated.
/// </summary>
Task Completion { get; }
cin
component model refactoring
r152
cin
Prerelease version of RunnableComponent...
r251 /// <summary>
/// Current state of the componenet
/// </summary>
cin
component model refactoring
r152 ExecutionState State { get; }
cin
Prerelease version of RunnableComponent...
r251 /// <summary>
/// Event to monitor the state of the component.
/// </summary>
cin
Added ResetState to RunnableComponent to reset in case of failure...
r205 event EventHandler<StateChangeEventArgs> StateChanged;
cin
Prerelease version of RunnableComponent...
r251 /// <summary>
/// The last error
/// </summary>
cin
component model refactoring
r152 Exception LastError { get; }
}
}