Files
RobustToolbox/Robust.Shared/IoC/IPostInjectInit.cs
2022-11-12 12:23:12 +01:00

19 lines
685 B
C#

namespace Robust.Shared.IoC
{
/// <summary>
/// If implemented on a type instantiated by IoC,
/// <see cref="IPostInjectInit.PostInject" /> will be called after all dependencies have been injected.
/// Do not assume any order in the initialization of other managers,
/// Or the availability of things through <see cref="IoCManager.Resolve{T}()" />
/// </summary>
/// <seealso cref="IoCManager" />
/// <seealso cref="DependencyAttribute" />
public interface IPostInjectInit
{
/// <summary>
/// Essentially functions as a constructor after dependencies have been injected.
/// </summary>
void PostInject();
}
}