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/packagemd/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/packagemd/Server.cs')
-rw-r--r-- | csharp/test/Ice/packagemd/Server.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/csharp/test/Ice/packagemd/Server.cs b/csharp/test/Ice/packagemd/Server.cs new file mode 100644 index 00000000000..bf5252fc4fb --- /dev/null +++ b/csharp/test/Ice/packagemd/Server.cs @@ -0,0 +1,40 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +using System; +using System.Reflection; + +[assembly: CLSCompliant(true)] + +[assembly: AssemblyTitle("IceTest")] +[assembly: AssemblyDescription("Ice test")] +[assembly: AssemblyCompany("ZeroC, Inc.")] + +public class Server : Test.TestHelper +{ + public override void run(string[] args) + { + Ice.Properties properties = createTestProperties(ref args); + properties.setProperty("Ice.Package.Test", "test.Ice.packagemd"); + properties.setProperty("Ice.Package.Test1", "test.Ice.packagemd"); + using (var communicator = initialize(properties)) + { + properties.setProperty("TestAdapter.Endpoints", getTestEndpoint(0)); + var adapter = communicator.createObjectAdapter("TestAdapter"); + adapter.add(new InitialI(), Ice.Util.stringToIdentity("initial")); + adapter.activate(); + communicator.waitForShutdown(); + } + } + + public static int Main(string[] args) + { + return Test.TestDriver.runTest<Server>(args); + } +} |