protected override void OnDisposing() { StaticContainer.Container.Resolve <ILogService>().DeleteLogger(DeviceLogger); DeviceConnection?.Dispose(); base.OnDisposing(); }