question

Moukonga-1438 avatar image
0 Votes"
Moukonga-1438 asked

PeerNameRegistration

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);

windows-10-networkdotnet-runtime
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers