Compartir a través de


OptionConfigureExtensionMethods.ConfigureFormatter Método

Definición

Sobrecargas

ConfigureFormatter<TOptions,TOptionFormatter>(IServiceCollection)

Configura un formateador de opciones para TOptions.

ConfigureFormatter<TOptions>(IServiceCollection)

Configura un formateador de opciones para TOptions.

ConfigureFormatter<TOptions,TOptionFormatter>(IServiceCollection)

Source:
OptionFormatterExtensionMethods.cs

Configura un formateador de opciones para 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

Parámetros de tipo

TOptions

Tipo de opciones.

TOptionFormatter

Tipo de formateador de opción.

Parámetros

services
IServiceCollection

Los servicios.

Devoluciones

IServiceCollection, para encadenar con otras llamadas.

Se aplica a

ConfigureFormatter<TOptions>(IServiceCollection)

Source:
OptionFormatterExtensionMethods.cs

Configura un formateador de opciones para 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

Parámetros de tipo

TOptions

Tipo de opciones.

Parámetros

services
IServiceCollection

Los servicios.

Devoluciones

IServiceCollection, para encadenar con otras llamadas.

Comentarios

Esto usará el formateador de opciones predeterminado a menos que se configure un formateador no predeterminado.

Se aplica a