OptionConfigureExtensionMethods.ConfigureFormatterResolver<TOptions,TOptionFormatterResolver> 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.
Configures an options formatter resolver for TOptions
.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureFormatterResolver<TOptions,TOptionFormatterResolver> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class where TOptionFormatterResolver : class, Orleans.IOptionFormatterResolver<TOptions>;
static member ConfigureFormatterResolver : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null and 'OptionFormatterResolver : null and 'OptionFormatterResolver :> Orleans.IOptionFormatterResolver<'Options>)
<Extension()>
Public Function ConfigureFormatterResolver(Of TOptions As Class, TOptionFormatterResolver As Class) (services As IServiceCollection) As IServiceCollection
Type Parameters
- TOptions
The options type.
- TOptionFormatterResolver
The option formatter resolver type.
Parameters
- services
- IServiceCollection
The services.
Returns
The IServiceCollection, for chaining with other calls.