Example #1
0
 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"));
 }
Example #2
0
 public BinaryUploadStream OpenUploadStream()
 {
     var(success, stream) =
         BinaryUploadStream.Open(_maps, _chunks, _maxChunkLenght, null, _nrwl);
     return(success ? stream : null);
 }