public string UrlFor(object model, string categoryOrHttpMethod = null)
        {
            var url = _inner.UrlFor(model, categoryOrHttpMethod);

            _cache.Enqueue(url);

            return(_currentRequest.ToRelativeUrl(_directories, url));
        }
Esempio n. 2
0
        public string UrlForAsset(AssetFolder folder, string name)
        {
            var url = _inner.UrlForAsset(folder, name);

            _cache.Enqueue(url);

            return(_request.ToRelativeUrl(_directories, url));
        }
Esempio n. 3
0
        private void fixUrl(HtmlTag tag, string attrName)
        {
            var rawUrl = tag.Attr(attrName);

            _cache.Enqueue(rawUrl);

            var relativeUrl = _request.ToRelativeUrl(_directories, rawUrl);

            tag.Attr(attrName, relativeUrl);
        }
 public bool Write(AssetPath asset, Action <IEnumerable <AssetFile> > writeHeaders)
 {
     _cache.Enqueue(_request.RelativeUrl());
     return(_writer.Write(asset, writeHeaders));
 }