Exemplo n.º 1
0
        public MvcRouteTemplateResolver(IRouteNameResolver routeNameResolver)
        {
            if (routeNameResolver == null)
            {
                throw new ArgumentNullException(nameof(routeNameResolver));
            }

            _routeNameResolver = routeNameResolver;
        }
Exemplo n.º 2
0
        public MetricsResourceFilter(IRouteNameResolver routeNameResolver)
        {
            if (routeNameResolver == null)
            {
                throw new ArgumentNullException(nameof(routeNameResolver));
            }

            _routeNameResolver = routeNameResolver;
        }
Exemplo n.º 3
0
        public static MvcOptions AddMetricsResourceFilter(this MvcOptions options, IRouteNameResolver routeNameResolver)
        {
            if (!options.Filters.OfType <MetricsResourceFilter>().Any())
            {
                options.Filters.Add(new MetricsResourceFilter(routeNameResolver));
            }

            return(options);
        }
Exemplo n.º 4
0
        public static MvcOptions AddMetricsResourceFilter(this MvcOptions options, IRouteNameResolver routeNameResolver)
        {
            options.Filters.Add(new MetricsResourceFilter(routeNameResolver));

            return options;
        }
 private MvcRouteTemplateResolver(IRouteNameResolver routeNameResolver)
 {
     _routeNameResolver = routeNameResolver ?? throw new ArgumentNullException(nameof(routeNameResolver));
 }
Exemplo n.º 6
0
 public DieScheiteResourceFilter(IRouteNameResolver routeNameResolver)
 {
     _routeNameResolver = routeNameResolver;
 }