()
| 46 | const GREETER = BindingKey.create<Greeter>('greeter'); |
| 47 | |
| 48 | export async function main() { |
| 49 | const ctx = new Context('invocation-context'); |
| 50 | ctx.bind(GREETER).toClass(Greeter); |
| 51 | const greeter = await ctx.get(GREETER); |
| 52 | console.log(greeter.hello()); |
| 53 | } |
| 54 | |
| 55 | if (require.main === module) { |
| 56 | main().catch(err => { |