##// END OF EJS Templates
working on runnable components
working on runnable components

File last commit:

r256:c52691faaf21 v3
r257:440801d88019 v3
Show More
IRunnable.cs
52 lines | 1.7 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>
cin
Removed obsolete App, ComponentContainer...
r256 /// Current state of the componenet, dynamically reflects the current state.
cin
Prerelease version of RunnableComponent...
r251 /// </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; }
}
}