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

            setup?.Invoke(builder);
            return(builder.Build());
        }
Ejemplo n.º 2
0
 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)
 {
 }