Creating a Thing Registry client

Now that we know the address of the Thing Registry, we must create a ThingRegistryClient object to communicate with it:

private async Task RegisterDevice(string RegistryJid) 
{ 
   if (this.registryClient == null || 
         this.registryClient.ThingRegistryAddress != RegistryJid) 
   { 
         if (this.registryClient != null) 
         { 
               this.registryClient.Dispose(); 
               this.registryClient = null; 
         } 
 
         this.registryClient = new ThingRegistryClient( 
               this.xmppClient, RegistryJid); 
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.69.143