This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ContentExtensions | |
{ | |
public static string RelativeUrl(this IContent content) | |
{ | |
var pathParts = new List<string>(); | |
var n = content; | |
while (n != null) | |
{ | |
pathParts.Add(n.UrlName()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace MVC4_CDN_Rewrite_Example.Utils | |
{ | |
public class CdnRewriteResponse : MemoryStream | |
{ | |
private Stream Stream { get; set; } |