Click or drag to resize
ModuleEntryManagerEnsureModuleT Method
Ensures that a module of the specified type is registered.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 9.0.0
public static void EnsureModule<T>()
where T : new(), ModuleEntry

Type Parameters

The type of the module to register.
If a module info object with the same name is already available, the manager does nothing. If the application life-cycle has already started and the module has AutoInitialize set to true, the module initialization starts immediately to catch up (if called from multiple threads, the method does not return until the module has caught up the application life-cycle).
See Also