Exemplo n.º 1
0
        public static MetricsBuilder AddLogReporter(this MetricsBuilder builder,
                                                    Action <LogReporterOptions> configureAction)
        {
            if (configureAction == null)
            {
                throw new ArgumentNullException(nameof(configureAction));
            }

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

            return(builder);
        }