コード例 #1
0
        async void OnDeleteButtonClicked(object sender, EventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(_fileName))
            {
                bool isDeleted = await _storageService.DeleteFileAsync(ContainerType.Text, _fileName);

                if (isDeleted)
                {
                    OnGetFileListButtonClicked(sender, e);
                }
            }
        }
コード例 #2
0
        public async Task <IHttpActionResult> Delete(Guid siteId, string name)
        {
            await storageService.DeleteFileAsync(siteId.ToString(), name);

            return(Ok());
        }