summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/operations/Collocated.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/operations/Collocated.cs')
-rw-r--r--csharp/test/Ice/operations/Collocated.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/csharp/test/Ice/operations/Collocated.cs b/csharp/test/Ice/operations/Collocated.cs
index 1015858d192..6d9a9900a08 100644
--- a/csharp/test/Ice/operations/Collocated.cs
+++ b/csharp/test/Ice/operations/Collocated.cs
@@ -18,12 +18,13 @@ namespace Ice
{
public override void run(string[] args)
{
- Ice.Properties properties = createTestProperties(ref args);
- properties.setProperty("Ice.ThreadPool.Client.Size", "2");
- properties.setProperty("Ice.ThreadPool.Client.SizeWarn", "0");
- properties.setProperty("Ice.BatchAutoFlushSize", "100");
- properties.setProperty("Ice.Package.Test", "Ice.operations");
- using (var communicator = initialize(properties))
+ var initData = new InitializationData();
+ initData.typeIdNamespaces = new string[]{"Ice.operations.TypeId"};
+ initData.properties = createTestProperties(ref args);
+ initData.properties.setProperty("Ice.ThreadPool.Client.Size", "2");
+ initData.properties.setProperty("Ice.ThreadPool.Client.SizeWarn", "0");
+ initData.properties.setProperty("Ice.BatchAutoFlushSize", "100");
+ using(var communicator = initialize(initData))
{
communicator.getProperties().setProperty("TestAdapter.AdapterId", "test");
communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0));
@@ -31,7 +32,7 @@ namespace Ice
Ice.ObjectPrx prx = adapter.add(new MyDerivedClassI(), Ice.Util.stringToIdentity("test"));
//adapter.activate(); // Don't activate OA to ensure collocation is used.
- if (prx.ice_getConnection() != null)
+ if(prx.ice_getConnection() != null)
{
throw new System.Exception();
}