Developer technologies | .NET | .NET Runtime
.NET: Microsoft Technologies based on the .NET software framework. Runtime: An environment required to run apps that aren't compiled to machine language.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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);
.NET: Microsoft Technologies based on the .NET software framework. Runtime: An environment required to run apps that aren't compiled to machine language.