Beispiel #1
0
 public MCS.LocFoup end_GetFoup(Ice.AsyncResult r__)
 {
     IceInternal.OutgoingAsync outAsync__ = (IceInternal.OutgoingAsync)r__;
     IceInternal.OutgoingAsync.check__(outAsync__, this, __GetFoup_name);
     if (!outAsync__.wait__())
     {
         try
         {
             outAsync__.throwUserException__();
         }
         catch (Ice.UserException ex__)
         {
             throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
         }
     }
     MCS.LocFoup             ret__;
     IceInternal.BasicStream is__ = outAsync__.istr__;
     is__.startReadEncaps();
     ret__ = null;
     if (ret__ == null)
     {
         ret__ = new MCS.LocFoup();
     }
     ret__.read__(is__);
     is__.endReadEncaps();
     return(ret__);
 }
Beispiel #2
0
 public MCS.LocFoup GetFoup(int foupBarCode, _System.Collections.Generic.Dictionary <string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("GetFoup", Ice.OperationMode.Idempotent, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             os__.writeInt(foupBarCode);
         }
         catch (Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if (!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch (Ice.UserException ex__)
                 {
                     throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             MCS.LocFoup ret__;
             ret__ = null;
             if (ret__ == null)
             {
                 ret__ = new MCS.LocFoup();
             }
             ret__.read__(is__);
             is__.endReadEncaps();
             return(ret__);
         }
         catch (Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Beispiel #3
0
 public MCS.LocFoup GetFoup(int foupBarCode, _System.Collections.Generic.Dictionary <string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "GetFoup", Ice.OperationMode.Idempotent, context__);
     MCS.LocFoup result__ = new MCS.LocFoup();
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         MESLink servant__ = null;
         try
         {
             servant__ = (MESLink)obj__;
         }
         catch (_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.GetFoup(foupBarCode, 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 #4
0
        public static Ice.DispatchStatus GetFoup___(MESLink obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            checkMode__(Ice.OperationMode.Idempotent, current__.mode);
            IceInternal.BasicStream is__ = inS__.istr();
            is__.startReadEncaps();
            int foupBarCode;

            foupBarCode = is__.readInt();
            is__.endReadEncaps();
            IceInternal.BasicStream os__  = inS__.ostr();
            MCS.LocFoup             ret__ = obj__.GetFoup(foupBarCode, current__);
            if (ret__ == null)
            {
                MCS.LocFoup tmp__ = new MCS.LocFoup();
                tmp__.write__(os__);
            }
            else
            {
                ret__.write__(os__);
            }
            return(Ice.DispatchStatus.DispatchOK);
        }
Beispiel #5
0
 public MCS.LocFoup GetFoup(int foupBarCode, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "GetFoup", Ice.OperationMode.Idempotent, context__);
     MCS.LocFoup result__ = new MCS.LocFoup();
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         MESLink servant__ = null;
         try
         {
             servant__ = (MESLink)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.GetFoup(foupBarCode, 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 #6
0
 public MCS.LocFoup GetFoup(int foupBarCode, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("GetFoup", Ice.OperationMode.Idempotent, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             os__.writeInt(foupBarCode);
         }
         catch(Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if(!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch(Ice.UserException ex__)
                 {
                     throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             MCS.LocFoup ret__;
             ret__ = null;
             if(ret__ == null)
             {
                 ret__ = new MCS.LocFoup();
             }
             ret__.read__(is__);
             is__.endReadEncaps();
             return ret__;
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Beispiel #7
0
 public MCS.LocFoup end_GetFoup(Ice.AsyncResult r__)
 {
     IceInternal.OutgoingAsync outAsync__ = (IceInternal.OutgoingAsync)r__;
     IceInternal.OutgoingAsync.check__(outAsync__, this, __GetFoup_name);
     if(!outAsync__.wait__())
     {
         try
         {
             outAsync__.throwUserException__();
         }
         catch(Ice.UserException ex__)
         {
             throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
         }
     }
     MCS.LocFoup ret__;
     IceInternal.BasicStream is__ = outAsync__.istr__;
     is__.startReadEncaps();
     ret__ = null;
     if(ret__ == null)
     {
         ret__ = new MCS.LocFoup();
     }
     ret__.read__(is__);
     is__.endReadEncaps();
     return ret__;
 }
Beispiel #8
0
 public static Ice.DispatchStatus GetFoup___(MESLink obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Idempotent, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     int foupBarCode;
     foupBarCode = is__.readInt();
     is__.endReadEncaps();
     IceInternal.BasicStream os__ = inS__.ostr();
     MCS.LocFoup ret__ = obj__.GetFoup(foupBarCode, current__);
     if(ret__ == null)
     {
         MCS.LocFoup tmp__ = new MCS.LocFoup();
         tmp__.write__(os__);
     }
     else
     {
         ret__.write__(os__);
     }
     return Ice.DispatchStatus.DispatchOK;
 }