IoTOnboardingService.OnboardingService.HandleAdapterRemoved C# (CSharp) Method

HandleAdapterRemoved() private method

private HandleAdapterRemoved ( DeviceWatcher sender, DeviceInformationUpdate information ) : void
sender Windows.Devices.Enumeration.DeviceWatcher
information Windows.Devices.Enumeration.DeviceInformationUpdate
return void
        private void HandleAdapterRemoved(DeviceWatcher sender, DeviceInformationUpdate information)
        {
            if (_wlanAdapterId != null && _wlanAdapterId == information.Id)
            {
                _softAccessPoint.Stop();
                _wlanAdapterId = null;

                _onboardingProducer.Stop();
                _iconProducer.Stop();
            }
        }