19 lines
455 B
C#
19 lines
455 B
C#
using MAX.Core.DependencyInjection;
|
|
|
|
namespace MAX.Core.Interfaces;
|
|
|
|
/// <summary>
|
|
/// 启动器:实现 <see cref="IDependencyRegistrar"/>,由宿主项目统一发现并按 <see cref="Priority"/> 排序执行。
|
|
/// </summary>
|
|
public interface IStartup : IDependencyRegistrar
|
|
{
|
|
/// <summary>
|
|
/// 优先级(优先级越高越先执行)
|
|
/// </summary>
|
|
int Priority { get; }
|
|
/// <summary>
|
|
/// 初始化
|
|
/// </summary>
|
|
void Initialize();
|
|
}
|