src/Orleans.Core/Configuration/OptionLogger/OptionFormatterExtensionMethods.cs
/// <summary>
/// Configure option formatter resolver for named option TOptions, if none is configured
/// </summary>
Configure option formatter resolver for named option TOptions, if none is configured
Configure option formatter resolver for named option TOptions if none is configured
public static IServiceCollection TryConfigureFormatterResolver<TOptions, TOptionFormatterResolver>(this IServiceCollection services)
            where TOptions : class
            where TOptionFormatterResolver : class, IOptionFormatterResolver<TOptions>
        {
            if (services.All(service => service.ServiceType != typeof(IOptionFormatterResolver<TOptions>)))
            {
                return services.ConfigureFormatterResolver<TOptions, TOptionFormatterResolver>();
            }
            return services;
        }
public static IServiceCollection TryConfigureFormatterResolver < TOptions , TOptionFormatterResolver > ( this IServiceCollection services ) where TOptions : class where TOptionFormatterResolver : class , IOptionFormatterResolver < TOptions > { if ( services . All ( service => service . ServiceType != typeof ( IOptionFormatterResolver < TOptions > ) ) ) { return services . ConfigureFormatterResolver < TOptions , TOptionFormatterResolver > ( ) ; } return services ; }
Configure option formatter resolver for named option TOptions, if none is configured
Configure option formatter resolver for named option TOptions if none is configured
IServiceCollection
this