Exemplo n.º 1
0
        public override async Task CopyToLocationAsync(string destination, bool overwrite = false)
        {
            IStorageItem item = destination.CreateItem(Configuration);

            using (Stream source = OpenRead())
            {
                using (Stream dest = item.OpenWrite(overwrite, _file.Length))
                {
                    await source.CopyToAsync(dest);

                    await dest.FlushAsync();
                }
            }
        }