src/Orleans.Core/Configuration/OptionLogger/OptionFormatterExtensionMethods.cs
/// <summary>
/// Configures an options formatter resolver for <typeparamref name="TOptions"/>.
/// </summary>
/// <param name="services">
/// The services.
/// </param>
/// <typeparam name="TOptions">
/// The options type.
/// </typeparam>
/// <typeparam name="TOptionFormatterResolver">
/// The option formatter resolver type.
/// </typeparam>
/// <returns>
/// The <see cref="IServiceCollection"/>, for chaining with other calls.
/// </returns>
Configures an options formatter resolver for .
Configures an options formatter resolver for .
public static IServiceCollection ConfigureFormatterResolver<TOptions, TOptionFormatterResolver>(this IServiceCollection services)
            where TOptions : class
            where TOptionFormatterResolver : class, IOptionFormatterResolver<TOptions>
        {
            return services.AddSingleton<IOptionFormatterResolver<TOptions>, TOptionFormatterResolver>();
        }
public static IServiceCollection ConfigureFormatterResolver < TOptions , TOptionFormatterResolver > ( this IServiceCollection services ) where TOptions : class where TOptionFormatterResolver : class , IOptionFormatterResolver < TOptions > { return services . AddSingleton < IOptionFormatterResolver < TOptions > , TOptionFormatterResolver > ( ) ; }
Configures an options formatter resolver for .
Configures an options formatter resolver for .
The , for chaining with other calls.
The for chaining with other calls .
IServiceCollection
this
services
None
typeparam
The options type.
The options type .
typeparam
The option formatter resolver type.
The option formatter resolver type .