src/Orleans.Core/Configuration/OptionLogger/OptionFormatterExtensionMethods.cs
/// <summary>
/// Configure option formatter resolver for named option TOptions
/// </summary>
Configure option formatter resolver for named option TOptions
Configure option formatter resolver for named option TOptions
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 > ( ) ; }
Configure option formatter resolver for named option TOptions
Configure option formatter resolver for named option TOptions
IServiceCollection
this