Esempio n. 1
0
        public bool Equals(AssetPlanKey other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (Equals(other.MimeType, MimeType))
            {
                return(other.Names.IsEqualTo(Names));
            }

            return(false);
        }
Esempio n. 2
0
 private IEnumerable <HtmlTag> TagsForPlan(AssetPlanKey key)
 {
     //HACK:Hard coded path to assets
     return(key.Names.Select(asset => _builders[key.MimeType](Path.Combine("/_assets/", asset))));
 }