コード例 #1
0
        public static IMvcBuilder AddMonitoringServices(this IMvcBuilder mvcBuilder, MonitoringOptions monitoringOptions)
        {
            if (monitoringOptions?.AppMetrics?.IsEnabled ?? false)
            {
                mvcBuilder.AddMetrics();
            }

            return(mvcBuilder);
        }
コード例 #2
0
        public static IMvcBuilder AddClassifiedAdsMonitoringServices(this IMvcBuilder mvcBuilder)
        {
            mvcBuilder.AddMetrics();

            return(mvcBuilder);
        }
コード例 #3
0
 public static IMvcBuilder AddMonitoringMetrics(this IMvcBuilder builder)
 {
     builder.AddMetrics();
     return(builder);
 }