OptionConfigureExtensionMethods.ConfigureFormatter 方法

定义

重载

ConfigureFormatter<TOptions,TOptionFormatter>(IServiceCollection)

为 配置选项格式化程序 TOptions

ConfigureFormatter<TOptions>(IServiceCollection)

为 配置选项格式化程序 TOptions

ConfigureFormatter<TOptions,TOptionFormatter>(IServiceCollection)

Source:
OptionFormatterExtensionMethods.cs

为 配置选项格式化程序 TOptions

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

类型参数

TOptions

选项类型。

TOptionFormatter

选项格式化程序类型。

参数

services
IServiceCollection

服务。

返回

用于 IServiceCollection与其他调用链接的 。

适用于

ConfigureFormatter<TOptions>(IServiceCollection)

Source:
OptionFormatterExtensionMethods.cs

为 配置选项格式化程序 TOptions

public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureFormatter<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class, new();
static member ConfigureFormatter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null and 'Options : (new : unit -> 'Options))
<Extension()>
Public Function ConfigureFormatter(Of TOptions As {Class, New}) (services As IServiceCollection) As IServiceCollection

类型参数

TOptions

选项类型。

参数

services
IServiceCollection

服务。

返回

用于 IServiceCollection与其他调用链接的 。

注解

除非配置了非默认格式化程序,否则将使用默认选项格式化程序。

适用于