protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing && glacierClient != null) { if (shouldDispose) { glacierClient.Dispose(); } glacierClient = null; } this.disposed = true; } }