OptionConfigureExtensionMethods.ConfigureFormatter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConfigureFormatter<TOptions,TOptionFormatter>(IServiceCollection) |
Configures an options formatter for |
ConfigureFormatter<TOptions>(IServiceCollection) |
Configures an options formatter for |
ConfigureFormatter<TOptions,TOptionFormatter>(IServiceCollection)
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)
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.