comparison Implab/Components/IInitializable.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 7c7e9ad6fe4a
children
comparison
equal deleted inserted replaced
261:05a87f575512 262:f1696cdc3d7a
1 using System; 1 using System;
2 using System.Threading;
2 3
3 namespace Implab.Components { 4 namespace Implab.Components {
4 /// <summary> 5 /// <summary>
5 /// Initializable components are created and initialized in two steps, first we have create the component, 6 /// Initializable components are created and initialized in two steps, first we have create the component,
6 /// then we have to complete it's creation by calling an <see cref="Initialize()"/> method. All parameters needed 7 /// then we have to complete it's creation by calling an <see cref="Initialize()"/> method. All parameters needed
21 /// to start initialization and the <see cref="IRunnable.Completion"/> 22 /// to start initialization and the <see cref="IRunnable.Completion"/>
22 /// property can be used to track operation completion. 23 /// property can be used to track operation completion.
23 /// </para> 24 /// </para>
24 /// </remarks> 25 /// </remarks>
25 void Initialize(); 26 void Initialize();
27 void Initialize(CancellationToken ct);
26 } 28 }
27 } 29 }
28 30