Axiom.Core.PluginManager.UnloadAll C# (CSharp) Method

UnloadAll() public method

Unloads all currently loaded plugins.
public UnloadAll ( ) : void
return void
		public void UnloadAll()
		{
			// loop through and stop all loaded plugins
			for ( int i = _plugins.Count - 1; i >= 0; i-- )
			{
				IPlugin plugin = (IPlugin)_plugins[ i ];

				LogManager.Instance.Write( "Unloading plugin: {0}", GetAssemblyTitle( plugin.GetType() ) );

				plugin.Shutdown();
			}

			// clear the plugin list
			_plugins.Clear();
		}