16 lines
425 B
C#
16 lines
425 B
C#
using MAX.Core.Interfaces;
|
|
|
|
namespace MAX.Core.DependencyInjection;
|
|
|
|
/// <summary>
|
|
/// 依赖注册器:把当前模块的服务注册到 <see cref="IServiceRegistrar"/>。
|
|
/// 底层使用哪个容器由宿主项目决定,MAX.Core 不引用任何容器。
|
|
/// </summary>
|
|
public interface IDependencyRegistrar: IPriority
|
|
{
|
|
/// <summary>
|
|
/// 注册服务
|
|
/// </summary>
|
|
void Register(IServiceRegistrar registrar);
|
|
}
|