Mercurial > pub > ImplabNet
diff Implab/Components/IRunnable.cs @ 262:f1696cdc3d7a v3 v3.0.8
Added IInitializable.Initialize() overload
Added IRunnable.Start(), IRunnable.Start() overloads
Fixed cancellation of the current operation when Stop() is called
More tests
author | cin |
---|---|
date | Mon, 16 Apr 2018 02:12:39 +0300 |
parents | c52691faaf21 |
children |
line wrap: on
line diff
--- a/Implab/Components/IRunnable.cs Fri Apr 13 19:15:11 2018 +0300 +++ b/Implab/Components/IRunnable.cs Mon Apr 16 02:12:39 2018 +0300 @@ -19,6 +19,7 @@ /// This operation is cancellable and it's expected to move to /// the failed state or just ignore the cancellation request, /// </remarks> + void Start(); void Start(CancellationToken ct); /// <summary> @@ -31,8 +32,9 @@ /// will be requested to cancel. The stop operatin will be /// performed only if the component in the running state. /// </remarks> + void Stop(); void Stop(CancellationToken ct); - + /// <summary> /// Current state of the componenet, dynamically reflects the current state. /// </summary>