deno.land / x / alosaur@v1.1.1 / examples / microservice / app / app.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { App } from "alosaur/mod.ts";import { CoreArea } from "./areas/core.area.ts";import { MsTcpClient } from "alosaur/microservice/mod.ts";
const app = new App({ areas: [CoreArea], providers: [ { token: "TCP_CLIENT", useValue: new MsTcpClient({ hostname: "localhost", port: 4500 }), // TODO need implement useFactory in di // useFactory: () => new MsTcpClient({ hostname: "localhost", port: 4500 }), }, ], logging: false,});
app.listen();
alosaur

Version Info

Tagged at
a year ago