Edit

Share via


OptionConfigureExtensionMethods.TryConfigureFormatter<TOptions,TOptionFormatter> Method

Definition

Configures an options formatter for TOptions if none are already configured.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection TryConfigureFormatter<TOptions,TOptionFormatter> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class where TOptionFormatter : class, Orleans.IOptionFormatter<TOptions>;
static member TryConfigureFormatter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null and 'OptionFormatter : null and 'OptionFormatter :> Orleans.IOptionFormatter<'Options>)
<Extension()>
Public Function TryConfigureFormatter(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