Example #1
0
 public bool Match(Segment other)
 {
     return other.Index == Index;
 }
Example #2
0
 private static NodeEndpoint GetEndpointByBackupIndex(Segment segment, int backupIndex)
 {
     if (backupIndex == 0)
         return segment.AssignedEndpoint;
     return segment.Backups.ElementAtOrDefault(backupIndex - 1);
 }
Example #3
0
 public Topology(Segment[] segments, int version)
 {
     Segments = segments;
     Version = version;
     Timestamp = DateTime.Now;
 }