Bootstrap

Once it launched, appolo will try to find an appolo bootstrap class and call it's run method.
Only when bootstrap is finished, the server will start.
bootstrap must implement IBootstrap.

import {bootstrap,IBootstrap} from '@appolo/engine';
import {define,singleton,initMethod,inject} from '@appolo/inject';
@define()
@bootstrap()
export class Bootstrap implements IBootstrap{
@inject() someManager1:SomeManager1
public async run(){
await this.someManager1.doSomeThing();
}
}