endpoint collection is empty after registrering a unsecured peername.
I m using net5.0 sdk and targeting .net462
static List<PeerNameRegistration> getPeerNameRegs (string peername, int port) {
List<PeerNameRegistration> regs = new List<PeerNameRegistration>();
var clouds = Cloud.GetAvailableClouds();
var peer = new PeerName(peername, PeerNameType.Unsecured);
foreach (var cloud in clouds) {
var reg = new PeerNameRegistration(peer, port, cloud);
reg.Start();
regs.Add(reg);
Console.WriteLine($" --- {reg.EndPointCollection.Count}.");
}
return regs;
}
each reg.EndPointCollection is empty (reg.EndPointCollection = 0);