public static IMvcBuilder AddMonitoringServices(this IMvcBuilder mvcBuilder, MonitoringOptions monitoringOptions)
        {
            if (monitoringOptions?.AppMetrics?.IsEnabled ?? false)
            {
                mvcBuilder.AddMetrics();
            }

            return(mvcBuilder);
        }
        public static IMvcBuilder AddClassifiedAdsMonitoringServices(this IMvcBuilder mvcBuilder)
        {
            mvcBuilder.AddMetrics();

            return(mvcBuilder);
        }
Exemplo n.º 3
0
 public static IMvcBuilder AddMonitoringMetrics(this IMvcBuilder builder)
 {
     builder.AddMetrics();
     return(builder);
 }