// Add servant to ASM and parent's _contents map. public void activate(Ice.ObjectAdapter a) { NodePrx thisNode = NodePrxHelper.uncheckedCast(a.add(this, _id)); if (_parent != null) { _parent.addChild(thisNode); } }
public static NodePrx uncheckedCast(global::Ice.ObjectPrx b) { if (b == null) { return(null); } NodePrx r = b as NodePrx; if (r == null) { NodePrxHelper h = new NodePrxHelper(); h.iceCopyFrom(b); r = h; } return(r); }
public static NodePrx checkedCast(global::Ice.ObjectPrx b, global::System.Collections.Generic.Dictionary <string, string> ctx) { if (b == null) { return(null); } NodePrx r = b as NodePrx; if ((r == null) && b.ice_isA(ice_staticId(), ctx)) { NodePrxHelper h = new NodePrxHelper(); h.iceCopyFrom(b); r = h; } return(r); }
// addChild is called by the child in order to add // itself to the _contents member of the parent public void addChild(NodePrx child) { _contents.Add(child); }
public static void write(global::Ice.OutputStream ostr, NodePrx v) { ostr.writeProxy(v); }