Delay module initialization
Delay module initialization for resource establish, configuration fetching e.g.
Overview
Whenever a module initialized all of it services will automatically be initialized with all of their dependencies. This solution allow you to delay this initialization until the resource will be available.
Set delay loading
For setting a delay loading all need to be done is implementing the IServerModule
interface.
This interface expose the onLoad
method which returns a promise. As soon the promise will be resolved the module initialization will continue.
Example:
Last updated