Shutdown() публичный Метод

public Shutdown ( ) : bool
Результат bool
        private void stopPlugin(Plugin p)
        {
            //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();
                p.Running = false;
               // p.Enabled = false;
                p.Domain = Common.CreateSandboxDomain("Sandbox Domain", p.Location, SecurityZone.Internet, typeof(ClientService));
                OSAEObjectStateManager.ObjectStateSet(p.PluginName, "OFF", serviceObject);

            }
            catch (Exception ex)
            { Log.Error("Error stopping plugin (" + p.PluginName + ")", ex); }
        }
        private void disablePlugin(Plugin p)
        {
            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(ClientService));

            }
            catch (Exception ex)
            {
                this.Log.Error("Error stopping plugin (" + p.PluginName + ")", ex);
            }
        }