public string BuildSpriteUrl(Guid key, byte[] bytes) { return(string.Format("{0}{1}/{2}-{3}.png", configuration.ContentHost, configuration.SpriteVirtualPath, key.RemoveDashes(), Hasher.Hash(bytes).RemoveDashes())); }
public string BuildResourceUrl(Guid key, byte[] bytes, Type type) { return(BuildResourceUrl(key, Hasher.Hash(bytes).RemoveDashes(), type)); }
public string BuildResourceUrl <T>(Guid key, byte[] bytes) where T : IResourceType { return(BuildResourceUrl <T>(key, Hasher.Hash(bytes).RemoveDashes())); }
public string BuildSpriteUrl(Guid key, byte[] bytes) { var url = string.Format("{0}{1}/{2}-{3}.png", configuration.ContentHost, configuration.ResourceAbsolutePath, key.RemoveDashes(), Hasher.Hash(bytes).RemoveDashes()); return(Registry.UrlTransformer != null ? Registry.UrlTransformer(RRContainer.Current.GetInstance <HttpContextBase>(), null, url) : url); }