Table of Contents

Interface IModuleProvider

Namespace
Shard.Server.Modules.Providers
Assembly
Shard.Server.dll

Provides modules to the server without exposing where those modules come from.

public interface IModuleProvider

Methods

LoadModules(ModuleProviderContext, Action<IModule>)

Discovers and creates the modules available from this provider. Each module must be registered immediately after creation, before the provider performs another fallible step.

void LoadModules(ModuleProviderContext context, Action<IModule> registerModule)

Parameters

context ModuleProviderContext

Context used by providers during module discovery.

registerModule Action<IModule>

Transfers lifetime ownership of one module to the loader. Providers must not dispose a module after this callback returns.