public static ConverterPrx uncheckedCast(Ice.ObjectPrx b) { if (b == null) { return(null); } ConverterPrx r = b as ConverterPrx; if (r == null) { ConverterPrxHelper h = new ConverterPrxHelper(); h.copyFrom__(b); r = h; } return(r); }
public static ConverterPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary <string, string> ctx) { if (b == null) { return(null); } ConverterPrx r = b as ConverterPrx; if ((r == null) && b.ice_isA(ice_staticId(), ctx)) { ConverterPrxHelper h = new ConverterPrxHelper(); h.copyFrom__(b); r = h; } return(r); }
static void Main(string[] args) { try { Ice.Communicator communicator = Ice.Util.initialize(); ConverterPrx cvt = ConverterPrxHelper.checkedCast(communicator.stringToProxy("converter:tcp -p 10000 -h localhost")); string upper = cvt.toUpper("hello world"); System.Console.WriteLine("Server returned: " + upper); while (true) { ; //holds the window to show the console output } communicator.destroy(); } catch (System.Exception ex) { System.Console.Error.WriteLine(ex); System.Environment.Exit(1); } }
public static void write__(IceInternal.BasicStream os__, ConverterPrx v__) { os__.writeProxy(v__); }