示例#1
0
        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();
        }
示例#2
0
        public static void Cleanup()
        {
            if (pluginLoader == null)
                throw new InvalidOperationException("The plugin loader has not been instantiated.");

            pluginLoader.CleanupInstance();
            pluginLoader = null;
        }