diff options
author | Matthew Newhook <matthew@zeroc.com> | 2015-03-18 12:58:16 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2015-03-18 12:58:16 -0230 |
commit | 9b7668c7c92cf9cb311fe444cdddb489cd2a219d (patch) | |
tree | 5016567c58c81f5654e9d01935e199c6bf4761d2 /cs/demo/Manual/lifecycle/Server.cs | |
parent | VS add-in & build updates: (diff) | |
download | ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.bz2 ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.xz ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.zip |
Removed demos.
Moved demoscript to distribution.
Diffstat (limited to 'cs/demo/Manual/lifecycle/Server.cs')
-rw-r--r-- | cs/demo/Manual/lifecycle/Server.cs | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/cs/demo/Manual/lifecycle/Server.cs b/cs/demo/Manual/lifecycle/Server.cs deleted file mode 100644 index 794563e255e..00000000000 --- a/cs/demo/Manual/lifecycle/Server.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2015 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 FilesystemI; -using System; -using System.Reflection; - -[assembly: CLSCompliant(true)] - -[assembly: AssemblyTitle("IceLifecycleServer")] -[assembly: AssemblyDescription("Ice lifecycle demo server")] -[assembly: AssemblyCompany("ZeroC, Inc.")] - -public class Server -{ - class App : Ice.Application - { - public override int run(string[] args) - { - // - // Terminate cleanly on receipt of a signal. - // - shutdownOnInterrupt(); - - // - // Create an object adapter - // - Ice.ObjectAdapter adapter = communicator().createObjectAdapterWithEndpoints( - "LifecycleFilesystem", "default -h localhost -p 10000"); - - // - // Create the root directory. - // - DirectoryI root = new DirectoryI(); - Ice.Identity id = new Ice.Identity(); - id.name = "RootDir"; - adapter.add(root, id); - - // - // All objects are created, allow client requests now. - // - adapter.activate(); - - // - // Wait until we are done. - // - communicator().waitForShutdown(); - if(interrupted()) - { - System.Console.Error.WriteLine(appName() + ": received signal, shutting down"); - } - - return 0; - } - } - - static public int Main(string[] args) - { - App app = new App(); - return app.main(args); - } -} |