Example #1
0
        private async Task <string> ReadTextAsync(string key)
        {
            var data = await dataStore.FindAsync(key).ConfigureAwait(false);

            using (var fs = await data.OpenStreamAsync().ConfigureAwait(false))
                using (var sr = new StreamReader(fs))
                {
                    return(await sr.ReadToEndAsync());
                }
        }