Exemplo 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;
        }
Exemplo 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;
        }