Example #1
0
 public static WorkerPrx read(global::Ice.InputStream istr)
 {
     global::Ice.ObjectPrx proxy = istr.readProxy();
     if (proxy != null)
     {
         WorkerPrxHelper result = new WorkerPrxHelper();
         result.iceCopyFrom(proxy);
         return(result);
     }
     return(null);
 }
Example #2
0
        public static WorkerPrx uncheckedCast(global::Ice.ObjectPrx b, string f)
        {
            if (b == null)
            {
                return(null);
            }
            global::Ice.ObjectPrx bb = b.ice_facet(f);
            WorkerPrxHelper       h  = new WorkerPrxHelper();

            h.iceCopyFrom(bb);
            return(h);
        }
Example #3
0
        public static WorkerPrx uncheckedCast(global::Ice.ObjectPrx b)
        {
            if (b == null)
            {
                return(null);
            }
            WorkerPrx r = b as WorkerPrx;

            if (r == null)
            {
                WorkerPrxHelper h = new WorkerPrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
Example #4
0
        public static WorkerPrx checkedCast(global::Ice.ObjectPrx b, global::System.Collections.Generic.Dictionary <string, string> ctx)
        {
            if (b == null)
            {
                return(null);
            }
            WorkerPrx r = b as WorkerPrx;

            if ((r == null) && b.ice_isA(ice_staticId(), ctx))
            {
                WorkerPrxHelper h = new WorkerPrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
Example #5
0
 public static WorkerPrx checkedCast(global::Ice.ObjectPrx b, string f, global::System.Collections.Generic.Dictionary <string, string> ctx)
 {
     if (b == null)
     {
         return(null);
     }
     global::Ice.ObjectPrx bb = b.ice_facet(f);
     try
     {
         if (bb.ice_isA(ice_staticId(), ctx))
         {
             WorkerPrxHelper h = new WorkerPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (global::Ice.FacetNotExistException)
     {
     }
     return(null);
 }
Example #6
0
 public static WorkerPrx checkedCast(global::Ice.ObjectPrx b, string f)
 {
     if (b == null)
     {
         return(null);
     }
     global::Ice.ObjectPrx bb = b.ice_facet(f);
     try
     {
         if (bb.ice_isA(ice_staticId()))
         {
             WorkerPrxHelper h = new WorkerPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (global::Ice.FacetNotExistException)
     {
     }
     return(null);
 }