Performing the search

Now that we have the scope of the search defined, performing the search is easy. We call the Search method on the registry client, submitting an offset, the maximum number of nodes to return in the search result, and a callback method to call when the result is returned:

Log.Informational("Searching for MIoT devices in my vicinity."); 
 
this.registryClient.Search(0, 100, Search.ToArray(), 
   (sender, e) => 
   { 
         Log.Informational(e.Things.Length.ToString() +  
               (e.More ? "+" : string.Empty) + " things found."); 
..................Content has been hidden....................

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