-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathPool3Service.dbl
153 lines (124 loc) · 4.49 KB
/
Pool3Service.dbl
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
;;*****************************************************************************
;;
;; Title: Pool3Service.dbl
;;
;; Description: Service to expose methods that are part of the former
;; xfServerPlus / xfNetLink "Pool3" interface.
;;
;;*****************************************************************************
;; WARNING: GENERATED CODE!
;; This file was generated by CodeGen. Avoid editing the file if possible.
;; Any changes you make will be lost of the file is re-generated.
;;*****************************************************************************
import Harmony.Core
import Harmony.Core.Context
import Harmony.Core.Interface
import Harmony.Core.EF.Extensions
import Harmony.OData
import Harmony.OData.Adapter
import System.Threading.Tasks
import System
import System.Collections.Generic
import System.Text
import Microsoft.AspNetCore.Mvc
import Microsoft.AspNetCore.OData
import Microsoft.AspNetCore.Authorization
import Newtonsoft.Json.Linq
import System.Linq
import Services.Models
namespace Services.Controllers
public partial class Pool3Service extends DynamicCallProvider
static IsInitialized, boolean
static method Pool3Service
proc
;;If there is a Pool3ServiceCustom method, call it
Pool3ServiceCustom()
IsInitialized = true
endmethod
;;; <summary>
;;; Partial method to allow custom constructor code.
;;; </summary>
;;; <param name="services"></param>
partial static method Pool3ServiceCustom, void
endmethod
;;; <summary>
;;; Constructor
;;; </summary>
public method Pool3Service
connection, @IDynamicCallConnection
endparams
parent(connection)
proc
if(!IsInitialized)
throw new Exception("cctor missing")
endmethod
;;; <summary>
;;; No description found in method catalog
;;; </summary>
public async method Initialize, @Task<Pool3.Initialize_Response>
proc
;;Prepare the response object
data response = new Pool3.Initialize_Response()
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("Initialize"
& )
;;Set the return value in the return data
ArgumentHelper.Argument(0, resultTuple, response.ReturnValue)
;;Return the response
mreturn response
endmethod
;;; <summary>
;;; No description found in method catalog
;;; </summary>
public async method Activate, @Task
proc
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("Activate"
& )
endmethod
;;; <summary>
;;; No description found in method catalog
;;; </summary>
public async method Cleanup, @Task
proc
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("Cleanup"
& )
endmethod
;;; <summary>
;;; No description found in method catalog
;;; </summary>
public async method Deactivate, @Task
proc
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("Deactivate"
& )
endmethod
;;; <summary>
;;; No description found in method catalog
;;; </summary>
public async method getGreeting, @Task<Pool3.getGreeting_Response>
proc
;;Prepare the response object
data response = new Pool3.getGreeting_Response()
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("getGreeting"
& ,ArgumentHelper.MaybeNull(response.message)
& )
ArgumentHelper.Argument(1, resultTuple, response.message)
;;Return the response
mreturn response
endmethod
;;; <summary>
;;; No description found in method catalog
;;; </summary>
public async method setGreeting, @Task
required in args, @Pool3.setGreeting_Request
proc
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("setGreeting"
& ,args.message
& )
endmethod
endclass
endnamespace