Table of Contents

ProfileTransferProviderRegisterExtensions 类

命名空间
ClassIsland.Core.Extensions.Registry
程序集
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)

参数

services IServiceCollection

IServiceCollection对象。

id string

提供方 id

name string

提供方名称

type ProfileTransferProviderType

迁移类型

funcHandler Action<TopLevel>

提供方处理器

icon string

提供方图标表达式

返回

IServiceCollection

原来的IServiceCollection对象。

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

参数

services IServiceCollection

IServiceCollection对象。

id string

提供方 id

name string

提供方名称

type ProfileTransferProviderType

迁移类型

icon string

提供方图标表达式

返回

IServiceCollection

原来的IServiceCollection对象。

类型参数

TProvider

要注册的提供方类型