public Location(string id, Func <string, Props> logFactory, int customPort = 0, Config customConfig = null) { Id = id; LogFactory = logFactory; this.System = ActorSystem.Create(ReplicationConnection.DefaultRemoteSystemName, MultiLocationConfig.Create(customPort, customConfig)); this.Port = customPort != 0 ? customPort : ((ExtendedActorSystem)this.System).Provider.DefaultAddress.Port.Value; this.Probe = new TestProbe(System, Assertions); }
protected MultiLocationSpec(Config providerConfig = null) { this.providerConfig = providerConfig; this.Config = MultiLocationConfig.Create(0, providerConfig); counter++; }