1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
11 using System
.Threading
;
13 public class TestI
: TestIntfDisp_
20 op(Ice
.Current current
)
25 opWithResult(Ice
.Current current
)
31 opWithUE(Ice
.Current current
)
33 throw new TestIntfException();
37 opWithPayload(byte[] seq
, Ice
.Current current
)
42 opBatch(Ice
.Current current
)
57 opBatchCount(Ice
.Current current
)
71 waitForBatch(int count
, Ice
.Current current
)
76 while(_batchCount
< count
)
80 bool result
= count
== _batchCount
;
91 shutdown(Ice
.Current current
)
93 current
.adapter
.getCommunicator().shutdown();
96 private int _batchCount
;
97 private readonly IceUtilInternal
.Monitor _m
= new IceUtilInternal
.Monitor();
100 public class TestControllerI
: TestIntfControllerDisp_
103 holdAdapter(Ice
.Current current
)
109 resumeAdapter(Ice
.Current current
)
115 TestControllerI(Ice
.ObjectAdapter adapter
)
120 private Ice
.ObjectAdapter _adapter
;