public override void Delete() { if (!string.IsNullOrEmpty(_document.Key)) { _client.Delete(_document); } base.Delete(); }
public void Delete() { var parent = _parent as ICachedDirectoryInfo; if (parent == null) { throw new NotSupportedException(); } if (!string.IsNullOrEmpty(_directory.Key)) { _client.Delete(_directory); } parent.Remove(this); }