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

Interface IOpenModStartup

Utility class for common functions used during OpenMod startup.

Namespace: OpenMod.API.Ioc
Assembly: OpenMod.API.dll
Syntax
public interface IOpenModStartup

Properties

| Improve this Doc View Source

Context

The service configuration context.

Declaration
IOpenModServiceConfigurationContext Context { get; }
Property Value
Type Description
IOpenModServiceConfigurationContext

Methods

| Improve this Doc View Source

RegisterIocAssemblyAndCopyResources(Assembly, String)

Registers services using the [Service] and [ServiceImplementation] attributes from the given assembly. Also copies the embedded resources to the given assembly directory.

Declaration
void RegisterIocAssemblyAndCopyResources(Assembly assembly, string assemblyDir)
Parameters
Type Name Description
Assembly assembly

The assembly to register the services from.

System.String assemblyDir

The directory the embedded resources get copied to.

| Improve this Doc View Source

RegisterPluginAssembliesAsync(IPluginAssembliesSource)

Registers plugin assemblies.

Declaration
Task<ICollection<Assembly>> RegisterPluginAssembliesAsync(IPluginAssembliesSource source)
Parameters
Type Name Description
IPluginAssembliesSource source

The plugin assemblies source.

Returns
Type Description
Task<ICollection<Assembly>>

The loaded plugin assemblies.

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)