##// END OF EJS Templates
Bound promise to CancellationToken...
Bound promise to CancellationToken Added new states to ExecutionSate enum. Added Safe.Guard() method to handle cleanup of the result of the promise

File last commit:

r205:8200ab154c8a v2
r209:a867536c68fc v2
Show More
IInitializable.cs
21 lines | 925 B | text/x-csharp | CSharpLexer
using System;
namespace Implab.Components {
/// <summary>
/// Initializable components are created and initialized in two steps, first we have create the component,
/// then we have to complete it's creation by calling an <see cref="Initialize()"/> method. All parameters needed
/// to complete the initialization must be passed before the calling <see cref="Initialize()"/>
/// </summary>
public interface IInitializable {
/// <summary>
/// Completes initialization.
/// </summary>
/// <remarks>
/// Normally virtual methods shouldn't be called from the constructor, due to the incomplete object state, but
/// they can be called from this method. This method is aьуерщlso usefull when we constructing a complex grpah
/// of components where cyclic references may take place.
/// </remarks>
void Initialize();
}
}