Beispiel #1
0
 public MCS.User[] end_GetUserList(Ice.AsyncResult r__)
 {
     IceInternal.OutgoingAsync outAsync__ = (IceInternal.OutgoingAsync)r__;
     IceInternal.OutgoingAsync.check__(outAsync__, this, __GetUserList_name);
     if(!outAsync__.wait__())
     {
         try
         {
             outAsync__.throwUserException__();
         }
         catch(Ice.UserException ex__)
         {
             throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
         }
     }
     MCS.User[] ret__;
     IceInternal.BasicStream is__ = outAsync__.istr__;
     is__.startReadEncaps();
     {
         int szx__ = is__.readAndCheckSeqSize(9);
         ret__ = new MCS.User[szx__];
         for(int ix__ = 0; ix__ < szx__; ++ix__)
         {
             ret__[ix__] = new MCS.User();
             ret__[ix__].read__(is__);
         }
     }
     is__.endReadEncaps();
     return ret__;
 }
Beispiel #2
0
 public MCS.User[] GetUserList(int nBegin, int nCount, int session, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("GetUserList", Ice.OperationMode.Idempotent, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             os__.writeInt(nBegin);
             os__.writeInt(nCount);
             os__.writeInt(session);
         }
         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.User[] ret__;
             {
                 int szx__ = is__.readAndCheckSeqSize(9);
                 ret__ = new MCS.User[szx__];
                 for(int ix__ = 0; ix__ < szx__; ++ix__)
                 {
                     ret__[ix__] = new MCS.User();
                     ret__[ix__].read__(is__);
                 }
             }
             is__.endReadEncaps();
             return ret__;
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Beispiel #3
0
 public static MCS.User[] read(IceInternal.BasicStream is__)
 {
     MCS.User[] v__;
     {
         int szx__ = is__.readAndCheckSeqSize(9);
         v__ = new MCS.User[szx__];
         for(int ix__ = 0; ix__ < szx__; ++ix__)
         {
             v__[ix__] = new MCS.User();
             v__[ix__].read__(is__);
         }
     }
     return v__;
 }