Example #1
0
        public HttpResponseMessage Delete(string id, string version)
        {
            Log.Submit(LogLevel.Debug, "DELETE request received");
            HttpResponseMessage response = DeletePackage.Delete(Request, id, version);

            Log.Submit(LogLevel.Debug, "DELETE response ready");
            return(response);
        }
Example #2
0
 private void TryDelete()
 {
     if (deletePackage && deletePackage.TryDelete())
     {
         var deletePackage = this.deletePackage;
         this.deletePackage = null;
         DestroyImmediate(deletePackage);
         AssetDatabase.Refresh();
     }
 }
 private void CardOpenDeletePackage(object sender, MouseButtonEventArgs e)
 {
     if (!isOpenDeletePackage)
     {
         DeletePackage dp = new DeletePackage();
         dp.Show();
         isOpenDeletePackage = true;
     }
     else
     {
         DialogBox.Show("Error", "There is already an instance open!", "Alight");
     }
 }
Example #4
0
        public async Task <IActionResult> DeleteWithBranch(string branch, string version, string filename)
        {
            await DeletePackage.DeleteFile(
                projectId : int.Parse(Response.Headers["x-project-id"]),
                version : version,
                filename : filename,
                branch : branch,
                client : storageClient,
                upwardDb : upwardDb,
                accountsDb : accountsDb
                );

            return(Ok());
        }
Example #5
0
        void InstallVersion(EventBase obj)
        {
            var installButton = obj.currentTarget as Button;
            var selection     = installButton.userData as PackageGroup;

            if (selection.Installed)
            {
                deletePackage           = CreateInstance <DeletePackage>();
                deletePackage.directory = selection.PackageDirectory;
                TryDelete();
                AssetDatabase.Refresh();
            }
            else
            {
                _ = selection.Source.InstallPackage(selection, targetVersion);
            }
        }