Пример #1
0
 public void Dispose()
 {
     if (_disposed == false)
     {
         _disposed = true;
         _configuration?.PositionProvider?.Dispose();
         _displaySupervisor?.Dispose();
         _lifetimeSupervisor?.Dispose();
     }
 }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

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

            _disposed = true;
        }