Example #1
0
 /// <param name="refs">
 /// the complete set of references. This should have been computed
 /// by applying updates to the advertised refs already discovered.
 /// </param>
 public RefWriter(IDictionary <string, Ref> refs)
 {
     if (refs is RefMap)
     {
         this.refs = refs.Values;
     }
     else
     {
         this.refs = RefComparator.Sort(refs.Values);
     }
 }
Example #2
0
 /// <param name="refs">
 /// the complete set of references. This should have been computed
 /// by applying updates to the advertised refs already discovered.
 /// </param>
 public RefWriter(ICollection <Ref> refs)
 {
     this.refs = RefComparator.Sort(refs);
 }