OptionConfigureExtensionMethods.TryConfigureFormatter<TOptions,TOptionFormatter> 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 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.