src/Orleans.Core/Configuration/OptionLogger/OptionFormatterExtensionMethods.cs
/// <summary>
/// Configure a named option to be logged
/// </summary>
Configure a named option to be logged
Configure a named option to be logged
public static IServiceCollection ConfigureNamedOptionForLogging<TOptions>(this IServiceCollection services, string name)
            where TOptions : class
        {
            return services.AddSingleton<IOptionFormatter>(sp => sp.GetService<IOptionFormatterResolver<TOptions>>().Resolve(name));
        }
public static IServiceCollection ConfigureNamedOptionForLogging < TOptions > ( this IServiceCollection services , string name ) where TOptions : class { return services . AddSingleton < IOptionFormatter > ( sp => sp . GetService < IOptionFormatterResolver < TOptions > > ( ) . Resolve ( name ) ) ; }
Configure a named option to be logged
Configure a named option to be logged
IServiceCollection
this
name
string