您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
949 B

using System.Threading.Tasks;
namespace Unity.Services.Core
{
/// <summary>
/// Contract for objects able to register a set of <see cref="IServiceComponent"/>
/// to a given <see cref="CoreRegistry"/>.
/// </summary>
public interface IInitializablePackage
{
/// <summary>
/// Start the process of registering all <see cref="IServiceComponent"/>
/// provided by this package to the given <paramref name="registry"/>.
/// </summary>
/// <param name="registry">
/// The <see cref="IServiceComponent"/> container to use.
/// It provides the available <see cref="IServiceComponent"/> and this package
/// will register the provided <see cref="IServiceComponent"/> to it.
/// </param>
/// <returns>
/// Return a handle to the asynchronous initialization process.
/// </returns>
Task Initialize(CoreRegistry registry);
}
}