Esempio n. 1
0
        public UrlResolver(IRouteCollection routes, IUrlResolverConfiguration configuration, IHttpRuntime httpRuntime)
        {
            routes.ThrowIfNull("routes");
            configuration.ThrowIfNull("configuration");
            httpRuntime.ThrowIfNull("httpRuntime");

            _routes        = new Lazy <IRouteCollection>(() => routes);
            _configuration = configuration;
            _httpRuntime   = httpRuntime;
        }
Esempio n. 2
0
        public UrlResolver(IRouteCollection routes, IUrlResolverConfiguration configuration, IHttpRuntime httpRuntime)
        {
            routes.ThrowIfNull("routes");
            configuration.ThrowIfNull("configuration");
            httpRuntime.ThrowIfNull("httpRuntime");

            _routes = new Lazy<IRouteCollection>(() => routes);
            _configuration = configuration;
            _httpRuntime = httpRuntime;
        }