public void disablePlugin(Plugin p) { this.Log.Info(p.PluginName + ": Disabling Plugin..."); OSAEObject obj = OSAEObjectManager.GetObjectByName(p.PluginName); OSAEObjectManager.ObjectUpdate(p.PluginName, p.PluginName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, 0); try { p.Shutdown(); p.Enabled = false; p.Domain = Common.CreateSandboxDomain("Sandbox Domain", p.Location, SecurityZone.Internet, typeof(OSAEService)); } catch (Exception ex) { this.Log.Error("Error stopping plugin (" + p.PluginName + "): " + ex.Message, ex); } }
public void stopPlugin(string serviceName, Plugin p) { Log = new General.OSAELog("SERVICE"); Log.Info(p.PluginName + ": Disabling Plugin..."); OSAEObject obj = OSAEObjectManager.GetObjectByName(p.PluginName); // OSAEObjectManager.ObjectUpdate(p.PluginName, p.PluginName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, obj.MinTrustLevel, false); try { p.Shutdown(); OSAEObjectStateManager.ObjectStateSet(p.PluginName, "OFF", "SYSTEM"); p.Domain = Common.CreateSandboxDomain("Sandbox Domain", p.Location, SecurityZone.Internet, typeof(OSAEService)); } catch (Exception ex) { Log.Error("Error stopping plugin (" + p.PluginName + "): " + ex.Message, ex); } }
public void disablePlugin(Plugin p) { this.Log.Info(p.PluginName + ": Disabling Plugin..."); OSAEObject obj = OSAEObjectManager.GetObjectByName(p.PluginName); OSAEObjectManager.ObjectUpdate(p.PluginName, p.PluginName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, 0); try { p.Shutdown(); p.Enabled = false; p.Domain = Common.CreateSandboxDomain("Sandbox Domain", p.Location, SecurityZone.Internet, typeof(OSAEService)); } catch (Exception ex) { this.Log.Error("Error stopping plugin (" + p.PluginName + "): " + ex.Message, ex); } }
public void disablePlugin(Plugin p) { logging.AddToLog("Disabling Plugin: " + p.PluginName,true); OSAEObject obj = osae.GetObjectByName(p.PluginName); osae.ObjectUpdate(p.PluginName, p.PluginName, obj.Description, obj.Type, obj.Address, obj.Container, 0); try { p.Shutdown(); p.Enabled = false; p.Domain = CreateSandboxDomain("Sandbox Domain", p.Location, SecurityZone.Internet); sendMessageToClients(WCF.OSAEWCFMessageType.PLUGIN, p.PluginName + " | " + p.Enabled.ToString() + " | " + p.PluginVersion + " | Stopped | " + p.LatestAvailableVersion + " | " + p.PluginType + " | " + osae.ComputerName); } catch (Exception ex) { logging.AddToLog("Error stopping plugin (" + p.PluginName + "): " + ex.Message + " - " + ex.InnerException, true); } }
public void stopPlugin(string serviceName, Plugin p) { Log = new General.OSAELog("SERVICE"); Log.Info(p.PluginName + ": Disabling Plugin..."); OSAEObject obj = OSAEObjectManager.GetObjectByName(p.PluginName); // OSAEObjectManager.ObjectUpdate(p.PluginName, p.PluginName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, obj.MinTrustLevel, false); try { p.Shutdown(); OSAEObjectStateManager.ObjectStateSet(p.PluginName, "OFF", "SYSTEM"); p.Domain = Common.CreateSandboxDomain("Sandbox Domain", p.Location, SecurityZone.Internet, typeof(OSAEService)); } catch (Exception ex) { Log.Error("Error stopping plugin (" + p.PluginName + "): " + ex.Message, ex); } }