public async Task <DrxDocument> GetDocumentAsync(Guid id) { var file = await _storeFolder.GetFileAsync($"{id}.drx"); using (var stream = await file.OpenAsync(FileAccessMode.Read)) return(DrxParser.Deserialise(stream.AsStreamForRead())); }
public async Task <DrxDocument> GetDocumentAsync(Guid id) { using (var stream = File.OpenRead(Path.Combine(_storeFolder.FullName, $"{id}.drx"))) return(DrxParser.Deserialise(stream)); }