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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Ice
{
namespace objects
{
public sealed class InitialI : Test.InitialDisp_
{
public InitialI(Ice.ObjectAdapter adapter)
{
_adapter = adapter;
_b1 = new BI();
_b2 = new BI();
_c = new CI();
_d = new DI();
_e = new EI();
_f = new FI(_e);
_b1.theA = _b2; // Cyclic reference to another B
_b1.theB = _b1; // Self reference.
_b1.theC = null; // Null reference.
_b2.theA = _b2; // Self reference, using base.
_b2.theB = _b1; // Cyclic reference to another B
_b2.theC = _c; // Cyclic reference to a C.
_c.theB = _b2; // Cyclic reference to a B.
_d.theA = _b1; // Reference to a B.
_d.theB = _b2; // Reference to a B.
_d.theC = null; // Reference to a C.
}
public override void getAll(out Test.B b1, out Test.B b2, out Test.C c, out Test.D d, Ice.Current current)
{
b1 = _b1;
b2 = _b2;
c = _c;
d = _d;
}
public override Test.B getB1(Ice.Current current)
{
return _b1;
}
public override Test.B getB2(Ice.Current current)
{
return _b2;
}
public override Test.C getC(Ice.Current current)
{
return _c;
}
public override Test.D getD(Ice.Current current)
{
return _d;
}
public override Test.E getE(Ice.Current current)
{
return _e;
}
public override Test.F getF(Ice.Current current)
{
return _f;
}
public override Ice.Value getI(Ice.Current current)
{
return new II();
}
public override Ice.Value getJ(Ice.Current current)
{
return new JI();
}
public override Ice.Value getH(Ice.Current current)
{
return new HI();
}
public override Test.K getK(Ice.Current current)
{
return new Test.K(new Test.L("l"));
}
public override Ice.Value opValue(Ice.Value v1, out Ice.Value v2, Ice.Current current)
{
v2 = v1;
return v1;
}
public override Ice.Value[] opValueSeq(Ice.Value[] v1, out Ice.Value[] v2, Ice.Current current)
{
v2 = v1;
return v1;
}
public override Dictionary<string, Ice.Value>
opValueMap(Dictionary<string, Ice.Value> v1, out Dictionary<string, Ice.Value> v2,
Ice.Current current)
{
v2 = v1;
return v1;
}
public override void setRecursive(Test.Recursive r, Ice.Current current)
{
}
public override bool supportsClassGraphDepthMax(Ice.Current current)
{
return true;
}
public override void setCycle(Test.Recursive r, Ice.Current current)
{
}
public override bool acceptsClassCycles(Ice.Current current)
{
return true;
}
public override Test.D1 getD1(Test.D1 d1, Ice.Current current)
{
return d1;
}
public override void throwEDerived(Ice.Current current)
{
throw new Test.EDerived(new Test.A1("a1"), new Test.A1("a2"), new Test.A1("a3"), new Test.A1("a4"));
}
public override void setG(Test.G theG, Ice.Current current)
{
}
public override void setI(Ice.Value theI, Ice.Current current)
{
}
public override Test.Base[] opBaseSeq(Test.Base[] inS, out Test.Base[] outS, Ice.Current current)
{
outS = inS;
return inS;
}
public override Test.Compact getCompact(Ice.Current current)
{
return new Test.CompactExt();
}
public override void shutdown(Ice.Current current = null)
{
_adapter.getCommunicator().shutdown();
}
public override Test.Inner.A
getInnerA(Ice.Current current)
{
return new Test.Inner.A(_b1);
}
public override Test.Inner.Sub.A
getInnerSubA(Ice.Current current)
{
return new Test.Inner.Sub.A(new Test.Inner.A(_b1));
}
public override void throwInnerEx(Ice.Current current)
{
throw new Test.Inner.Ex("Inner::Ex");
}
public override void throwInnerSubEx(Ice.Current current)
{
throw new Test.Inner.Sub.Ex("Inner::Sub::Ex");
}
public override Test.Initial_GetMBMarshaledResult getMB(Ice.Current current)
{
return new Test.Initial_GetMBMarshaledResult(_b1, current);
}
public override Task<Test.Initial_GetAMDMBMarshaledResult> getAMDMBAsync(Ice.Current current)
{
return Task.FromResult(new Test.Initial_GetAMDMBMarshaledResult(_b1, current));
}
public override Test.M
opM(Test.M v1, out Test.M v2, Ice.Current current)
{
v2 = v1;
return v1;
}
public override Test.F1
opF1(Test.F1 f11, out Test.F1 f12, Ice.Current current)
{
f12 = new Test.F1("F12");
return f11;
}
public override Test.F2Prx
opF2(Test.F2Prx f21, out Test.F2Prx f22, Ice.Current current)
{
f22 = Test.F2PrxHelper.uncheckedCast(current.adapter.getCommunicator().stringToProxy("F22"));
return f21;
}
public override Test.F3
opF3(Test.F3 f31, out Test.F3 f32, Ice.Current current)
{
f32 = new Test.F3(new Test.F1("F12"),
Test.F2PrxHelper.uncheckedCast(current.adapter.getCommunicator().stringToProxy("F22")));
return f31;
}
public override bool
hasF3(Ice.Current current)
{
return true;
}
private Ice.ObjectAdapter _adapter;
private Test.B _b1;
private Test.B _b2;
private Test.C _c;
private Test.D _d;
private Test.E _e;
private Test.F _f;
}
}
}
|