/// <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); } }
/// <summary> /// Remove the specified inteferace from the callback collection /// </summary> /// <param name="callback"></param> public void UnregisterCallback(IDeviceDiscoveryChanges callback) => callbacks.Remove(callback);