Example #1
0
 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()));
 }
Example #2
0
 public string BuildResourceUrl(Guid key, byte[] bytes, Type type)
 {
     return(BuildResourceUrl(key, Hasher.Hash(bytes).RemoveDashes(), type));
 }
Example #3
0
 public string BuildResourceUrl <T>(Guid key, byte[] bytes) where T : IResourceType
 {
     return(BuildResourceUrl <T>(key, Hasher.Hash(bytes).RemoveDashes()));
 }
Example #4
0
        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);
        }