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()); }
public ReplicationLink(ReplicationSource source, ReplicationTarget target) : this() { Source = source; Target = target; }