public void MergeFrom(IMergeSource other) { if (other is SingleValueMergeSource) { this.HitCount += ((SingleValueMergeSource)other).Value; } else { this.HitCount += (other as InternalHitCount).HitCount; } }
public string GetLocalPath(IMergeSource mergeSource) { var localPath = mergeSource.ServerItem.Replace(TfsPath, Path); if (localPath == mergeSource.ServerItem) { localPath = AssertTrailingSlash(mergeSource.ServerItem).Replace(TfsPath, Path); } return(localPath); }
public void MergeFrom(IMergeSource other) { if (other.MultiValue) { if (other is MultiValueMergeSource) { var mergeSource = (MultiValueMergeSource)other; this.SampleCount += mergeSource.BufferedData.ReadValuesInto(this.samples, mergeSource.StartOffset); } else { var mergeSource = other as InternalHistogram; mergeSource.UpdateDictionary(this.samples); this.SampleCount += mergeSource.SampleCount; } } else { var mergeSource = (SingleValueMergeSource)other; this.AddValue(mergeSource.Value); } }
public void MergeFrom(IMergeSource other) { this.Value += ((LongData)other).Value; }
public bool Match(IMergeSource mergeSource) { return(mergeSource.ServerItem.StartsWith(TfsPath)); }