diff options
author | Jose <jose@zeroc.com> | 2018-06-28 15:46:50 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-06-28 15:46:50 +0200 |
commit | b3763409f91afc54bf8f014d6e92772d6fc34dcb (patch) | |
tree | cdefc610ff161953073337ce0503e505078b4f9a /csharp/test/Ice/scope/Server.cs | |
parent | Fixed dispatcher test hang (fixes #123) (diff) | |
download | ice-b3763409f91afc54bf8f014d6e92772d6fc34dcb.tar.bz2 ice-b3763409f91afc54bf8f014d6e92772d6fc34dcb.tar.xz ice-b3763409f91afc54bf8f014d6e92772d6fc34dcb.zip |
Add support cs:namespace metadata
Add support to map Slice modules to different namespaces
using cs:namespace metadata
Fixes #122 slice2cs generates invalid namespace qualification
Diffstat (limited to 'csharp/test/Ice/scope/Server.cs')
-rw-r--r-- | csharp/test/Ice/scope/Server.cs | 65 |
1 files changed, 61 insertions, 4 deletions
diff --git a/csharp/test/Ice/scope/Server.cs b/csharp/test/Ice/scope/Server.cs index 1480dd0c028..d814fcbc6ea 100644 --- a/csharp/test/Ice/scope/Server.cs +++ b/csharp/test/Ice/scope/Server.cs @@ -87,7 +87,8 @@ public class Server : Test.TestHelper } public override Dictionary<String, Test.Inner.Inner2.S> - opSMap(Dictionary<String, Test.Inner.Inner2.S> s1, out Dictionary<String, Test.Inner.Inner2.S> s2, Ice.Current current) + opSMap(Dictionary<String, Test.Inner.Inner2.S> s1, out Dictionary<String, Test.Inner.Inner2.S> s2, + Ice.Current current) { s2 = s1; return s1; @@ -108,7 +109,8 @@ public class Server : Test.TestHelper } public override Dictionary<String, Test.Inner.Inner2.C> - opCMap(Dictionary<String, Test.Inner.Inner2.C> c1, out Dictionary<String, Test.Inner.Inner2.C> c2, Ice.Current current) + opCMap(Dictionary<String, Test.Inner.Inner2.C> c1, out Dictionary<String, Test.Inner.Inner2.C> c2, + Ice.Current current) { c2 = c1; return c1; @@ -138,7 +140,8 @@ public class Server : Test.TestHelper } public override Dictionary<String, Test.Inner.Inner2.S> - opSMap(Dictionary<String, Test.Inner.Inner2.S> s1, out Dictionary<String, Test.Inner.Inner2.S> s2, Ice.Current current) + opSMap(Dictionary<String, Test.Inner.Inner2.S> s1, out Dictionary<String, Test.Inner.Inner2.S> s2, + Ice.Current current) { s2 = s1; return s1; @@ -159,7 +162,8 @@ public class Server : Test.TestHelper } public override Dictionary<String, Test.Inner.Inner2.C> - opCMap(Dictionary<String, Test.Inner.Inner2.C> c1, out Dictionary<String, Test.Inner.Inner2.C> c2, Ice.Current current) + opCMap(Dictionary<String, Test.Inner.Inner2.C> c1, out Dictionary<String, Test.Inner.Inner2.C> c2, + Ice.Current current) { c2 = c1; return c1; @@ -172,6 +176,58 @@ public class Server : Test.TestHelper } } + class I4 : Inner.Test.Inner2.IDisp_ + { + public override Test.S + opS(Test.S s1, out Test.S s2, Ice.Current current) + { + s2 = s1; + return s1; + } + + public override Test.S[] + opSSeq(Test.S[] s1, out Test.S[] s2, Ice.Current current) + { + s2 = s1; + return s1; + } + + public override Dictionary<String, Test.S> + opSMap(Dictionary<String, Test.S> s1, out Dictionary<String, Test.S> s2, + Ice.Current current) + { + s2 = s1; + return s1; + } + + public override Test.C + opC(Test.C c1, out Test.C c2, Ice.Current current) + { + c2 = c1; + return c1; + } + + public override Test.C[] + opCSeq(Test.C[] c1, out Test.C[] c2, Ice.Current current) + { + c2 = c1; + return c1; + } + + public override Dictionary<String, Test.C> + opCMap(Dictionary<String, Test.C> c1, out Dictionary<String, Test.C> c2, + Ice.Current current) + { + c2 = c1; + return c1; + } + + public override void shutdown(Ice.Current current) + { + current.adapter.getCommunicator().shutdown(); + } + } + public override void run(string[] args) { Ice.Properties properties = createTestProperties(ref args); @@ -182,6 +238,7 @@ public class Server : Test.TestHelper adapter.add(new I1(), Ice.Util.stringToIdentity("i1")); adapter.add(new I2(), Ice.Util.stringToIdentity("i2")); adapter.add(new I3(), Ice.Util.stringToIdentity("i3")); + adapter.add(new I4(), Ice.Util.stringToIdentity("i4")); adapter.activate(); communicator.waitForShutdown(); } |