Esempio n. 1
0
 public void Dispose()
 {
     if (_disposed == false)
     {
         _disposed = true;
         _configuration?.PositionProvider?.Dispose();
         _displaySupervisor?.Dispose();
         _lifetimeSupervisor?.Dispose();
     }
 }
Esempio n. 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _configuration?.PositionProvider?.Dispose();
                _displaySupervisor?.Dispose();
                _lifetimeSupervisor?.Dispose();
            }

            _disposed = true;
        }