-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFooClientService.ts
More file actions
25 lines (17 loc) · 814 Bytes
/
Copy pathFooClientService.ts
File metadata and controls
25 lines (17 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import TYPES from "src/config/types";
import { inject } from "../../core/di";
import type ProtoService from "../base/ProtoService";
import type LoggerService from "../base/LoggerService";
export class FooClientService implements GRPC.IFooService {
private readonly protoService = inject<ProtoService>(TYPES.protoService);
private readonly loggerService = inject<LoggerService>(TYPES.loggerService);
private _fooClient: GRPC.IFooService = null as never;
Execute = async (...args: any) => {
this.loggerService.log("remote-grpc fooClientService Execute", { args });
return await this._fooClient.Execute(...args);
};
protected init = () => {
this._fooClient = this.protoService.makeClient<GRPC.IFooService>("FooService")
}
}
export default FooClientService;