Mercurial > pub > ImplabNet
comparison 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 |
comparison
equal
deleted
inserted
replaced
261:05a87f575512 | 262:f1696cdc3d7a |
---|---|
17 /// </summary> | 17 /// </summary> |
18 /// <remarks> | 18 /// <remarks> |
19 /// This operation is cancellable and it's expected to move to | 19 /// This operation is cancellable and it's expected to move to |
20 /// the failed state or just ignore the cancellation request, | 20 /// the failed state or just ignore the cancellation request, |
21 /// </remarks> | 21 /// </remarks> |
22 void Start(); | |
22 void Start(CancellationToken ct); | 23 void Start(CancellationToken ct); |
23 | 24 |
24 /// <summary> | 25 /// <summary> |
25 /// Stops this instance and releases all resources, after the | 26 /// Stops this instance and releases all resources, after the |
26 /// instance is stopped it is moved to Disposed state and | 27 /// instance is stopped it is moved to Disposed state and |
29 /// <remarks> | 30 /// <remarks> |
30 /// If the componet was in the starting state the pending operation | 31 /// If the componet was in the starting state the pending operation |
31 /// will be requested to cancel. The stop operatin will be | 32 /// will be requested to cancel. The stop operatin will be |
32 /// performed only if the component in the running state. | 33 /// performed only if the component in the running state. |
33 /// </remarks> | 34 /// </remarks> |
35 void Stop(); | |
34 void Stop(CancellationToken ct); | 36 void Stop(CancellationToken ct); |
35 | 37 |
36 /// <summary> | 38 /// <summary> |
37 /// Current state of the componenet, dynamically reflects the current state. | 39 /// Current state of the componenet, dynamically reflects the current state. |
38 /// </summary> | 40 /// </summary> |
39 ExecutionState State { get; } | 41 ExecutionState State { get; } |
40 | 42 |