예제 #1
0
 public IImmutableSet <ReplicationLink> GetLinks(ReplicationEndpointInfo sourceInfo)
 {
     return(_endpoint.CommonLogNames(sourceInfo)
            .Select(logName =>
     {
         var sourceLogId = sourceInfo.LogId(logName);
         var source = new ReplicationSource(sourceInfo.EndpointId, logName, sourceLogId, RemoteAcceptor);
         return new ReplicationLink(source, _endpoint.Target(logName));
     }).ToImmutableHashSet());
 }
예제 #2
0
 public ReplicationLink(ReplicationSource source, ReplicationTarget target) : this()
 {
     Source = source;
     Target = target;
 }