예제 #1
0
        public async Task Destroy(Storable storable)
        {
            var container = await MakeContainer(storable.Directory);

            var cloudBlockBlob = container.GetBlockBlobReference(storable.FileName);

            await cloudBlockBlob.DeleteIfExistsAsync();
        }
예제 #2
0
        public async Task Destroy(Storable storable)
        {
            await Task.Run(() =>
            {
                var absolutePath = MakeAbsolutePath(storable.DirectoryWithFileName);

                if (File.Exists(absolutePath))
                {
                    File.Delete(absolutePath);
                }
            });
        }