Interface IModuleProvider
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
contextModuleProviderContextContext used by providers during module discovery.
registerModuleAction<IModule>Transfers lifetime ownership of one module to the loader. Providers must not dispose a module after this callback returns.