public static void Initialize() { if (pluginLoader != null) throw new InvalidOperationException("The plugin loader has already been instantiated."); pluginLoader = new PluginLoader(new SC.Security.SecurityProvider("Plugin Loader")); pluginLoader.SearchPlugins(); }
public static void Cleanup() { if (pluginLoader == null) throw new InvalidOperationException("The plugin loader has not been instantiated."); pluginLoader.CleanupInstance(); pluginLoader = null; }