Exemplo n.º 1
0
        public async Task <T?> GetAsync(string id, bool ignoreBody = false)
        {
            if (!await Folder.CheckPermission())
            {
                return(null);
            }

            using var stream = await Folder.GetStreamAsync(id, FileAccess.Read);

            if (stream == null)
            {
                return(null);
            }
            using var sr = new StreamReader(stream);
            return(await dataSerializer.ReadAsync(sr, id, ignoreBody));
        }