public static ReplicaInfo Build(ReplicaInfoSetup setup, bool useFQDN)
        {
            var builder = new ReplicaInfoBuilder(useFQDN);

            setup?.Invoke(builder);
            return(builder.Build());
        }
 public ServiceBeacon(
     [NotNull] IZooKeeperClient zooKeeperClient,
     [CanBeNull] ReplicaInfoSetup replicaInfoSetup = null,
     [CanBeNull] ServiceBeaconSettings settings    = null,
     [CanBeNull] ILog log = null)
     : this(zooKeeperClient, ReplicaInfoBuilder.Build(replicaInfoSetup, (settings ?? new ServiceBeaconSettings()).UseFQDN), settings, log)
 {
 }