コード例 #1
0
        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()));
        }
コード例 #2
0
 public async Task <DrxDocument> GetDocumentAsync(Guid id)
 {
     using (var stream = File.OpenRead(Path.Combine(_storeFolder.FullName, $"{id}.drx")))
         return(DrxParser.Deserialise(stream));
 }