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