예제 #1
0
        public static MetricsBuilder AddConsoleReporter(this MetricsBuilder builder,
                                                        Action <ConsoleReporterOptions> configureAction)
        {
            if (configureAction == null)
            {
                throw new ArgumentNullException(nameof(configureAction));
            }

            builder.AddConsoleReporter();
            builder.Services.Configure(configureAction);

            return(builder);
        }