Redigera

Dela via


OptionConfigureExtensionMethods.ConfigureFormatter Method

Definition

Overloads

ConfigureFormatter<TOptions,TOptionFormatter>(IServiceCollection)

Configures an options formatter for TOptions.

ConfigureFormatter<TOptions>(IServiceCollection)

Configures an options formatter for TOptions.

ConfigureFormatter<TOptions,TOptionFormatter>(IServiceCollection)

Source:
OptionFormatterExtensionMethods.cs

Configures an options formatter for 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

Type Parameters

TOptions

The options type.

TOptionFormatter

The option formatter type.

Parameters

services
IServiceCollection

The services.

Returns

The IServiceCollection, for chaining with other calls.

Applies to

ConfigureFormatter<TOptions>(IServiceCollection)

Source:
OptionFormatterExtensionMethods.cs

Configures an options formatter for 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

Type Parameters

TOptions

The options type.

Parameters

services
IServiceCollection

The services.

Returns

The IServiceCollection, for chaining with other calls.

Remarks

This will use the default options formatter unless a non-default formatter is configured.

Applies to