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

Interface IPluginAccessor<TPlugin>

Service used for resolving plugin instances. Must be lazy accessed on global scope services.

Namespace: OpenMod.API.Plugins
Assembly: OpenMod.API.dll
Syntax
public interface IPluginAccessor<out TPlugin>
    where TPlugin : IOpenModPlugin
Type Parameters
Name Description
TPlugin

The plugin to resolve.

Properties

| Improve this Doc View Source

Instance

Gets the plugin instance. Returns null if the plugin is not loaded or found.

Declaration
TPlugin Instance { get; }
Property Value
Type Description
TPlugin

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)