public string UrlFor(object model, string categoryOrHttpMethod = null) { var url = _inner.UrlFor(model, categoryOrHttpMethod); _cache.Enqueue(url); return(_currentRequest.ToRelativeUrl(_directories, url)); }
public string UrlForAsset(AssetFolder folder, string name) { var url = _inner.UrlForAsset(folder, name); _cache.Enqueue(url); return(_request.ToRelativeUrl(_directories, url)); }
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)); }