Beispiel #1
0
        public int Move(int FoupID, int From, int To, _System.Collections.Generic.Dictionary <string, string> context__)
        {
            Ice.Current current__ = new Ice.Current();
            initCurrent__(ref current__, "Move", Ice.OperationMode.Idempotent, context__);
            int result__ = 0;

            IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
            {
                FoupMove servant__ = null;
                try
                {
                    servant__ = (FoupMove)obj__;
                }
                catch (_System.InvalidCastException)
                {
                    throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
                }
                result__ = servant__.Move(FoupID, From, To, current__);
                return(Ice.DispatchStatus.DispatchOK);
            };
            IceInternal.Direct direct__ = null;
            try
            {
                direct__ = new IceInternal.Direct(current__, run__);
                try
                {
                    Ice.DispatchStatus status__ = direct__.servant().collocDispatch__(direct__);
                    _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
                }
                finally
                {
                    direct__.destroy();
                }
            }
            catch (Ice.SystemException)
            {
                throw;
            }
            catch (_System.Exception ex__)
            {
                IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
            }
            return(result__);
        }
Beispiel #2
0
        public static Ice.DispatchStatus Move___(FoupMove obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            checkMode__(Ice.OperationMode.Idempotent, current__.mode);
            IceInternal.BasicStream is__ = inS__.istr();
            is__.startReadEncaps();
            int FoupID;

            FoupID = is__.readInt();
            int From;

            From = is__.readInt();
            int To;

            To = is__.readInt();
            is__.endReadEncaps();
            IceInternal.BasicStream os__ = inS__.ostr();
            int ret__ = obj__.Move(FoupID, From, To, current__);

            os__.writeInt(ret__);
            return(Ice.DispatchStatus.DispatchOK);
        }
Beispiel #3
0
 public static Ice.DispatchStatus Move___(FoupMove obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Idempotent, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     int FoupID;
     FoupID = is__.readInt();
     int From;
     From = is__.readInt();
     int To;
     To = is__.readInt();
     is__.endReadEncaps();
     IceInternal.BasicStream os__ = inS__.ostr();
     int ret__ = obj__.Move(FoupID, From, To, current__);
     os__.writeInt(ret__);
     return Ice.DispatchStatus.DispatchOK;
 }