Implement the InterestAdded Method

In this step, we'll make changes to the requestor to allow it to discover multiple providers. We will use a "detect these providers," but first we need to implement a query operation listener in the InterestAdded method of the QueryOperationListener. We will then track the providers we have discovered using an Object Map we created earlier.

How It Works

The query is used to detect providers of the Time-based Alarm; however, before the query can be created, the query's listener, DOFSystem.QueryOperationListener, needs to be set up.