Table of Contents

Interface IPluginServiceSource

Namespace
SkyrimForge
Assembly
SkyrimForge.dll

Adds a library's services so plugins can declare them as constructor parameters for dependency injection.

public interface IPluginServiceSource

Remarks

The framework loads an implementation from an assembly beside its own, not from the plugin directory, and constructs it through its one public constructor, which has no parameters. AddServices(IServiceRegistrar) is called once for each plugin, an IPlugin class or a class marked [PapyrusScript].

Methods

AddServices(IServiceRegistrar)

Adds a library's services.

void AddServices(IServiceRegistrar serviceRegistrar)

Parameters

serviceRegistrar IServiceRegistrar