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