Exemplo n.º 1
0
        public static IFixerBuilder AddMetrics(this IFixerBuilder builder,
                                               Func <IMetricsOptionsBuilder, IMetricsOptionsBuilder> buildOptions)
        {
            var options = buildOptions(new MetricsOptionsBuilder()).Build();

            return(builder.AddMetrics(options));
        }
Exemplo n.º 2
0
        public static IFixerBuilder AddMetrics(this IFixerBuilder builder, string sectionName = SectionName)
        {
            var options = builder.GetOptions <MetricsOptions>(sectionName);

            return(builder.AddMetrics(options));
        }