Esempio n. 1
0
        public bool ActivatePlugin()
        {
            try
            {
                this.Log.Info(PluginName + ":  Activating Plugin...");
                _plugin = (OSAEPluginBase)_domain.CreateInstanceAndUnwrap(_assemblyName, _assemblyType);
                _plugin.InitializeLifetimeService();

                _domain.UnhandledException += Domain_UnhandledException;
                return(true);
            }
            catch (Exception ex)
            {
                this.Log.Error("Error activating plugin (" + PluginName + ")", ex);
                _enabled = false;
                return(false);
            }
        }
Esempio n. 2
0
        public bool ActivatePlugin()
        {
            try
            {
                logging.AddToLog("Activating Plugin: " + PluginName, true);
                _plugin = (OSAEPluginBase)_domain.CreateInstanceAndUnwrap(_assemblyName, _assemblyType);
                _plugin.InitializeLifetimeService();

                _domain.UnhandledException += Domain_UnhandledException;
                return(true);
            }
            catch (Exception ex)
            {
                logging.AddToLog("Error activating plugin (" + PluginName + "): " + ex.Message + " - " + ex.InnerException, true);
                _enabled = false;
                return(false);
            }
        }
Esempio n. 3
0
        public bool ActivatePlugin()
        {
            Log = new OSAE.General.OSAELog(PluginName);
            try
            {
                Log.Info(PluginName + ":  Starting Plugin...");
                _plugin = (OSAEPluginBase)_domain.CreateInstanceAndUnwrap(_assemblyName, _assemblyType);
                _plugin.InitializeLifetimeService();
                _running = true;

                _domain.UnhandledException += Domain_UnhandledException;
                return(true);
            }
            catch (Exception ex)
            {
                Log.Error("Error Starting Plugin (" + PluginName + ")", ex);
                _enabled = false;
                return(false);
            }
        }
        public bool ActivatePlugin()
        {
            try
            {
                logging.AddToLog("Activating Plugin: " + PluginName, true);
                _plugin = (OSAEPluginBase)_domain.CreateInstanceAndUnwrap(_assemblyName, _assemblyType);
                _plugin.InitializeLifetimeService();

                _domain.UnhandledException += Domain_UnhandledException;
                return true;
            }
            catch (Exception ex)
            {
                logging.AddToLog("Error activating plugin (" + PluginName + "): " + ex.Message + " - " + ex.InnerException, true);
                _enabled = false;
                return false;
            }
        }
        public bool ActivatePlugin()
        {
            try
            {
                this.Log.Info(PluginName + ":  Activating Plugin...");
                _plugin = (OSAEPluginBase)_domain.CreateInstanceAndUnwrap(_assemblyName, _assemblyType);
                _plugin.InitializeLifetimeService();

                _domain.UnhandledException += Domain_UnhandledException;
                return true;
            }
            catch (Exception ex)
            {
                this.Log.Error("Error activating plugin (" + PluginName + ")", ex);
                _enabled = false;
                return false;
            }
        }
        public bool ActivatePlugin()
        {
            Log = new OSAE.General.OSAELog(PluginName);
            try
            {
                Log.Info(PluginName + ":  Starting Plugin...");
                _plugin = (OSAEPluginBase)_domain.CreateInstanceAndUnwrap(_assemblyName, _assemblyType);
                _plugin.InitializeLifetimeService();
                _running = true;

                _domain.UnhandledException += Domain_UnhandledException;
                return true;
            }
            catch (Exception ex)
            {
                Log.Error("Error Starting Plugin (" + PluginName + ")", ex);
                _enabled = false;
                return false;
            }
        }