Esempio n. 1
0
 internal void InitPlugin(PluginHolder pluginData)
 {
     _ExternalPluginData  = pluginData;
     PluginDirectory      = pluginData.PluginDirectory;
     LocalPluginDirectory = PluginDirectory.Substring(PluginDirectory.IndexOf($@"\{PluginExtensionPlugin.PluginsDirectory}\") + 1);
     DiagnosticTimer      = new Stopwatch();
 }
Esempio n. 2
0
 public void Update()
 {
     if (PluginDirectory.EndsWith(@"\"))
     {
         PluginDirectory = PluginDirectory.Substring(0, PluginDirectory.Length - 1);
     }
     CheckDownloadFolder();
     Download();
     UnZip();
     StopService();
     Deploy();
     StartService();
 }