Refine Service Api a bit

This commit is contained in:
K35
2022-01-07 22:10:24 +00:00
parent bb46da08de
commit 48a0713045
5 changed files with 19 additions and 4 deletions

View File

@ -219,6 +219,12 @@ export class CSharpTarget extends CompileTarget<{ CSharp_Namespace: string }> {
`public abstract class ${definition.name}Server<TContext> : JRpcService<TContext> {`
);
a(0, ``);
a(1, `public override string Name {`);
a(2, `get {`);
a(3, `return "${definition.name}";`);
a(2, `}`);
a(1, `}`);
a(0, ``);
a(1, `public ${definition.name}Server() {`);
for (const fnc of definition.functions) {