Exemplo n.º 1
0
 public bool Equals(AssetPlanKey other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other._mimeType, _mimeType) && other._names.IsEqualTo(_names));
 }
Exemplo n.º 2
0
 public AssetTagPlan PlanFor(AssetPlanKey key)
 {
     return(_plans[key]);
 }
Exemplo n.º 3
0
        public IEnumerable <HtmlTag> TagsForPlan(AssetPlanKey key)
        {
            var plan = _planCache.PlanFor(key);

            return(_builder.Build(plan));
        }
Exemplo n.º 4
0
        public AssetTagPlan PlanFor(MimeType mimeType, IEnumerable <string> names)
        {
            var key = new AssetPlanKey(mimeType, names);

            return(PlanFor(key));
        }
 public AssetTagPlan BuildPlan(AssetPlanKey key)
 {
     return(BuildPlan(key.MimeType, key.Names));
 }