public BinaryUploadStream OpenUploadStream(string id) { var(success, stream) = BinaryUploadStream.Open(_maps, _chunks, _maxChunkLenght, id, _nrwl); return(success ? stream : throw new MdbfsDuplicateKeyException("Document with specified ID already exists")); }
public BinaryUploadStream OpenUploadStream() { var(success, stream) = BinaryUploadStream.Open(_maps, _chunks, _maxChunkLenght, null, _nrwl); return(success ? stream : null); }