public void Dispose() { _logger.LogInformation("Disposing service"); _probeMonitor?.Dispose(); _syncManager?.Dispose(); _managedService?.Dispose(); }
private void DisconnectTracker() { if (_connectedTracker != null) { _connectedTracker.GazeDataReceived -= _connectedTracker_GazeDataReceived; _connectedTracker.Dispose(); _connectedTracker = null; _connectionName = string.Empty; _isTracking = false; _syncManager.Dispose(); } }