OptionConfigureExtensionMethods.ConfigureFormatterResolver<TOptions,TOptionFormatterResolver> 方法

定义

TOptions配置选项格式化程序解析程序。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureFormatterResolver<TOptions,TOptionFormatterResolver> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class where TOptionFormatterResolver : class, Orleans.IOptionFormatterResolver<TOptions>;
static member ConfigureFormatterResolver : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null and 'OptionFormatterResolver : null and 'OptionFormatterResolver :> Orleans.IOptionFormatterResolver<'Options>)
<Extension()>
Public Function ConfigureFormatterResolver(Of TOptions As Class, TOptionFormatterResolver As Class) (services As IServiceCollection) As IServiceCollection

类型参数

TOptions

选项类型。

TOptionFormatterResolver

选项格式化程序解析程序类型。

参数

services
IServiceCollection

服务。

返回

IServiceCollection用于与其他调用链接。

适用于