Fix: Call Uninstall Plugin Hook
This commit is contained in:
1 parent
2bf4da5795
commit
fac8f0acfa
8 files changed
+22
-14
No files matched your search
@@ -8,6 +8,7 @@ using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using Disco.Services.Tasks;
|
||||
using Quartz;
|
||||
using Disco.Data.Repository;
|
||||
|
||||
namespace Disco.Services.Plugins
|
||||
{
|
||||
@@ -28,6 +29,11 @@ namespace Disco.Services.Plugins
|
||||
if (!File.Exists(manifestFileLocation))
|
||||
throw new FileNotFoundException("Plugin Manifest File Not Found", manifestFileLocation);
|
||||
|
||||
using (DiscoDataContext dbContext = new DiscoDataContext())
|
||||
{
|
||||
manifest.UninstallPlugin(dbContext, UninstallData, this.Status);
|
||||
}
|
||||
|
||||
string manifestUninstallFileLocation = Path.Combine(manifest.PluginLocation, "manifest.uninstall.json");
|
||||
|
||||
if (File.Exists(manifestUninstallFileLocation))
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0521.1703")]
|
||||
[assembly: AssemblyFileVersion("1.2.0521.1703")]
|
||||
[assembly: AssemblyVersion("1.2.0603.1734")]
|
||||
[assembly: AssemblyFileVersion("1.2.0603.1734")]
|
||||
Reference in new issue
Block a user