private void PlatformDispose(bool disposing) { if (disposing) { PeripheralWrapper.UpdatedCharacterteristicValue -= OnUpdatedCharacterteristicValue; PeripheralWrapper.WroteCharacteristicValue -= OnWroteCharacteristicValue; PeripheralWrapper.UpdatedNotificationState -= OnUpdatedNotificationState; PeripheralWrapper.DiscoveredDescriptor -= OnDiscoveredDescriptor; _characteristic.Dispose(); } }