Mercurial > pub > ImplabNet
view Implab/Components/IInitializable.cs @ 193:0d69c0d6de0d
Added tag release v2.1 for changeset f1da3afc3521
author | cin |
---|---|
date | Fri, 22 Apr 2016 13:13:08 +0300 |
parents | d6a8cba73acc |
children | 8200ab154c8a |
line wrap: on
line source
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="Init()"/> method. All parameters needed /// to complete the initialization must be passed before the calling <see cref="Init()"/> /// </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 also usefull when we constructing a complex grpah /// of components where cyclic references may take place. /// </remarks> void Init(); } }