Table of Contents

SpeechProviderRegistryExtensions 类

命名空间
ClassIsland.Core.Extensions.Registry
程序集
ClassIsland.Core.dll

用于注册语音提供方的IServiceCollection扩展。

public static class SpeechProviderRegistryExtensions
继承
SpeechProviderRegistryExtensions
继承成员

方法

AddSpeechProvider<TSpeechProvider>(IServiceCollection)

注册一个语音提供方

public static IServiceCollection AddSpeechProvider<TSpeechProvider>(this IServiceCollection services) where TSpeechProvider : class, ISpeechService

参数

services IServiceCollection

IServiceCollection 服务集合

返回

IServiceCollection

原来的 IServiceCollection 对象

类型参数

TSpeechProvider

语音提供方类型

AddSpeechProvider<TSpeechProvider, TSpeechProviderSettingsControl>(IServiceCollection)

注册一个语音提供方

public static IServiceCollection AddSpeechProvider<TSpeechProvider, TSpeechProviderSettingsControl>(this IServiceCollection services) where TSpeechProvider : class, ISpeechService where TSpeechProviderSettingsControl : SpeechProviderControlBase

参数

services IServiceCollection

IServiceCollection 服务集合

返回

IServiceCollection

原来的 IServiceCollection 对象

类型参数

TSpeechProvider

语音提供方类型

TSpeechProviderSettingsControl

语音提供方设置控件类型