Exemplo n.º 1
0
        public ContentLengthMetric Merge(ContentLengthMetric newValue)
        {
            HasHTag     |= newValue.HasHTag;
            HasPTag     |= newValue.HasPTag;
            HasTableTag |= newValue.HasTableTag;

            foreach (var file in newValue._files)
            {
                _files[file.Key] = file.Value;
            }
            return(this);
        }
Exemplo n.º 2
0
 public bool IsEquivalent(ContentLengthMetric metric)
 {
     return(Min == metric.Min && Max == metric.Max && HasHTag == metric.HasHTag && HasPTag == metric.HasPTag && HasTableTag == metric.HasTableTag);
 }