Method UnloadPlugin
UnloadPlugin(Plugin, bool)
Unloads an isolated anvil plugin at runtime.
public WeakReference UnloadPlugin(Plugin plugin, bool waitForUnload = true)
Parameters
pluginPluginThe plugin to unload - see GetPlugin(string).
waitForUnloadboolIf true, the server will block the current main thread until the plugin has been unloaded.
Returns
- WeakReference
A weak reference to the unloading plugin assembly. Query the IsAlive property to confirm the plugin has unloaded.