OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface IPluginActivator

Service used for activating plugins.

Namespace: OpenMod.API.Plugins
Assembly: OpenMod.API.dll
Syntax
public interface IPluginActivator

Properties

| Improve this Doc View Source

ActivatedPlugins

Gets the activated plugins.

Declaration
IReadOnlyCollection<IOpenModPlugin> ActivatedPlugins { get; }
Property Value
Type Description
IReadOnlyCollection<IOpenModPlugin>

Methods

| Improve this Doc View Source

TryActivatePluginAsync(Assembly)

Tries to activate a plugin.

Declaration
Task<IOpenModPlugin> TryActivatePluginAsync(Assembly assembly)
Parameters
Type Name Description
Assembly assembly

The plugin assembly.

Returns
Type Description
Task<IOpenModPlugin>

The plugin instance if activation was successful; otherwise, null.

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)