ARCed.Plugins.Plugin.Plugin C# (CSharp) Method

Plugin() public method

Creates a new Plugin instance
public Plugin ( string filename, IPluginHost host ) : System
filename string The filename to the assembly that contains the plugin
host IPluginHost The host form that will be using the plugin
return System
        public Plugin(string filename, IPluginHost host)
        {
            try
            {
                this._host = host;
                this._assembly = Assembly.LoadFile(filename);
                var config = ReadResourceConfiguration(this._assembly);
                this._data = GetRegistryClasses(config);
                this.GetEntries();
                this.IsLoaded = true;
            }
            catch { this.IsLoaded = false; }
        }