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