コード例 #1
0
 /// <summary>
 /// Add the specified interface to the callback colletion
 /// </summary>
 /// <param name="callback"></param>
 public void RegisterCallback(IDeviceDiscoveryChanges callback)
 {
     if (callbacks.Contains(callback) == false)
     {
         callbacks.Add(callback);
         callback.AvailableDevices(devices);
         callback.NetworkState(wifiAvailable);
     }
 }
コード例 #2
0
 /// <summary>
 /// Remove the specified inteferace from the callback collection
 /// </summary>
 /// <param name="callback"></param>
 public void UnregisterCallback(IDeviceDiscoveryChanges callback) => callbacks.Remove(callback);