Exemplo n.º 1
0
        internal void ForceStop(Plugin plugin)
        {
            PluginDomain domain = GetDomain(plugin);

            if (domain != null)
            {
                domain.Stop();
            }
            else
            {
                Bridge.Logger.Fatal("No domain found for plugin {ID}!", plugin.Meta.Id);
            }
        }
Exemplo n.º 2
0
        public void Restart(Plugin plugin)
        {
            PluginDomain domain = GetDomain(plugin);

            if (domain != null)
            {
                domain.Stop(false);
                domain.Initialize();
                if (domain.Plugin.State == PluginState.Failed)
                {
                    return;
                }
                domain.Start();
            }
            else
            {
                Bridge.Logger.Fatal("No domain found for plugin {ID}!", plugin.Meta.Id);
            }
        }