-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathPool1Service.dbl
102 lines (82 loc) · 2.92 KB
/
Pool1Service.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
;;*****************************************************************************
;;
;; Title: Pool1Service.dbl
;;
;; Description: Service to expose methods that are part of the former
;; xfServerPlus / xfNetLink "Pool1" 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 Pool1Service extends DynamicCallProvider
static IsInitialized, boolean
static method Pool1Service
proc
;;If there is a Pool1ServiceCustom method, call it
Pool1ServiceCustom()
IsInitialized = true
endmethod
;;; <summary>
;;; Partial method to allow custom constructor code.
;;; </summary>
;;; <param name="services"></param>
partial static method Pool1ServiceCustom, void
endmethod
;;; <summary>
;;; Constructor
;;; </summary>
public method Pool1Service
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 getGreeting, @Task<Pool1.getGreeting_Response>
proc
;;Prepare the response object
data response = new Pool1.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, @Pool1.setGreeting_Request
proc
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("setGreeting"
& ,args.message
& )
endmethod
endclass
endnamespace