Skip to content

API reference Obsidian.API.Plugins

IPluginContainer interface

public interface IPluginContainer

In Obsidian.API.

Properties

PluginBase Plugin { get; }Assembly PluginAssembly { get; }IServiceScope ServiceScope { get; }

Methods

GetFileData(string)

byte[] GetFileData(string fileName);

Searches for the specified file that was packed alongside your plugin.

Parameters

fileName
The name of the file you're searching for.

Returns

Null if the file is not found or the byte array of the file.

void InjectServices(ILogger logger, object module);

On this page