Exemplo n.º 1
0
        public async Task <BinaryUploadStream> OpenUploadStreamAsync(string id)
        {
            var(success, stream) =
                await BinaryUploadStream.OpenAsync(_maps, _chunks, _maxChunkLenght, id, _nrwl);

            return(success ? stream : throw new MdbfsDuplicateKeyException("Document with specified ID already exists"));
        }
Exemplo n.º 2
0
        public async Task <BinaryUploadStream> OpenUploadStreamAsync()
        {
            var(success, stream) =
                await BinaryUploadStream.OpenAsync(_maps, _chunks, _maxChunkLenght, null, _nrwl);

            return(success ? stream : null);
        }