/// <summary>
        /// Loads the plugin
        /// </summary>
        public void Load()
        {
            current = this;

            try
            {
                IsLoaded = true;
                PluginLoaded.IfNotNull(i => i(this));
            }
            catch (Exception err)
            {
                IsLoaded = false;
                PluginLoadFailed.IfNotNull(i => i(this, err));
            }
        }
コード例 #2
0
        /// <summary>
        /// Loads the plugin
        /// </summary>
        public void Load()
        {
            current = this;

            try
            {
                IsLoaded = true;
                PluginLoaded.IfNotNull(i => i(this));
            }
            catch (Exception err)
            {
                IsLoaded = false;
                PluginLoadFailed.IfNotNull(i => i(this, err));
            }
        }