public void Resize(long newSize) { var position = this.Stream.Output.Position; this.Stream.Output.Dispose(); _client.Resize(newSize); _size = newSize; var storStrm = _client.OpenWrite(false, position); this.Stream.Output = storStrm; return; }