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/simple_filesystem/FileI.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/simple_filesystem/FileI.cs')
-rw-r--r-- | cs/demo/Manual/simple_filesystem/FileI.cs | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/cs/demo/Manual/simple_filesystem/FileI.cs b/cs/demo/Manual/simple_filesystem/FileI.cs deleted file mode 100644 index 7156b9761d2..00000000000 --- a/cs/demo/Manual/simple_filesystem/FileI.cs +++ /dev/null @@ -1,64 +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 Filesystem; -using System.Diagnostics; - -public class FileI : FileDisp_ -{ - // FileI constructor - - public FileI(Ice.Communicator communicator, string name, DirectoryI parent) - { - _name = name; - _parent = parent; - - Debug.Assert(_parent != null); - - // - // Create an identity - // - _id = new Ice.Identity(); - _id.name = System.Guid.NewGuid().ToString(); - } - - // Slice Node::name() operation - - public override string name(Ice.Current current) - { - return _name; - } - - // Slice File::read() operation - - public override string[] read(Ice.Current current) - { - return _lines; - } - - // Slice File::write() operation - - public override void write(string[] text, Ice.Current current) - { - _lines = text; - } - - // Add servant to ASM and parent's _contents map. - - public void activate(Ice.ObjectAdapter a) - { - NodePrx thisNode = NodePrxHelper.uncheckedCast(a.add(this, _id)); - _parent.addChild(thisNode); - } - - private string _name; - private DirectoryI _parent; - private Ice.Identity _id; - private string[] _lines; -} |