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