Exemplo n.º 1
0
        /// <inheritdoc />
        public async Task <Stream> OpenAsync(FileAccessMode accessMode)
        {
            if (!this.Exists)
            {
                throw new StorageItemNotFoundException(this.Name, "Cannot open a file that does not exist.");
            }

            var s = await this.file.OpenAsync(accessMode.ToFileAccessMode());

            return(s.AsStream());
        }