ProfileTransferProviderRegisterExtensions 类
- 程序集
- ClassIsland.Core.dll
注册档案数据迁移提供方的IServiceCollection扩展。
public static class ProfileTransferProviderRegisterExtensions
- 继承
-
ProfileTransferProviderRegisterExtensions
- 继承成员
方法
AddProfileTransferProvider(IServiceCollection, string, string, ProfileTransferProviderType, Action<TopLevel>, string?)
注册一个档案迁移提供方
public static IServiceCollection AddProfileTransferProvider(this IServiceCollection services, string id, string name, ProfileTransferProviderType type, Action<TopLevel> funcHandler, string? icon = null)
参数
servicesIServiceCollectionidstring提供方 id
namestring提供方名称
typeProfileTransferProviderType迁移类型
funcHandlerAction<TopLevel>提供方处理器
iconstring提供方图标表达式
返回
AddProfileTransferProvider<TProvider>(IServiceCollection, string, string, ProfileTransferProviderType, string?)
注册一个档案迁移提供方
public static IServiceCollection AddProfileTransferProvider<TProvider>(this IServiceCollection services, string id, string name, ProfileTransferProviderType type, string? icon = null) where TProvider : ProfileTransferProviderControlBase
参数
servicesIServiceCollectionidstring提供方 id
namestring提供方名称
typeProfileTransferProviderType迁移类型
iconstring提供方图标表达式
返回
类型参数
TProvider要注册的提供方类型