Exemple #1
0
 public void addClient(Ice.Identity ident, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("addClient", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             if(ident == null)
             {
                 Ice.Identity tmp__ = new Ice.Identity();
                 tmp__.write__(os__);
             }
             else
             {
                 ident.write__(os__);
             }
         }
         catch(Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         if(!og__.istr().isEmpty())
         {
             try
             {
                 if(!ok__)
                 {
                     try
                     {
                         og__.throwUserException();
                     }
                     catch(Ice.UserException ex)
                     {
                         throw new Ice.UnknownUserException(ex.ice_name(), ex);
                     }
                 }
                 og__.istr().skipEmptyEncaps();
             }
             catch(Ice.LocalException ex__)
             {
                 throw new IceInternal.LocalExceptionWrapper(ex__, false);
             }
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Exemple #2
0
 internal virtual void writeInstance(Ice.Object v, int index)
 {
     writeInt(index);
     try
     {
         v.ice_preMarshal();
     }
     catch(System.Exception ex)
     {
         instance_.initializationData().logger.warning("exception raised by ice_preMarshal::\n" + ex);
     }
     v.write__(this);
 }
Exemple #3
0
 public Chat.RoomAccess Join(string nick, string topic, Ice.Identity listenerIdentity, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("Join", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             os__.writeString(nick);
             os__.writeString(topic);
             if(listenerIdentity == null)
             {
                 Ice.Identity tmp__ = new Ice.Identity();
                 tmp__.write__(os__);
             }
             else
             {
                 listenerIdentity.write__(os__);
             }
         }
         catch(Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if(!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch(Chat.IChatException)
                 {
                     throw;
                 }
                 catch(Ice.UserException ex__)
                 {
                     throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             Chat.RoomAccess ret__;
             ret__ = null;
             if(ret__ == null)
             {
                 ret__ = new Chat.RoomAccess();
             }
             ret__.read__(is__);
             is__.endReadEncaps();
             return ret__;
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Exemple #4
0
 public virtual void writeUserException(Ice.UserException v)
 {
     writeBool(v.usesClasses__());
     v.write__(this);
     if(v.usesClasses__())
     {
         writePendingObjects();
     }
 }
Exemple #5
0
 private Ice.AsyncResult<Chat.Callback_Lobby_Join> begin_Join(string nick, string topic, Ice.Identity listenerIdentity, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     checkAsyncTwowayOnly__(__Join_name);
     IceInternal.TwowayOutgoingAsync<Chat.Callback_Lobby_Join> result__ =  new IceInternal.TwowayOutgoingAsync<Chat.Callback_Lobby_Join>(this, __Join_name, Join_completed__, cookie__);
     if(cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__Join_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.ostr__;
         os__.writeString(nick);
         os__.writeString(topic);
         if(listenerIdentity == null)
         {
             Ice.Identity tmp__ = new Ice.Identity();
             tmp__.write__(os__);
         }
         else
         {
             listenerIdentity.write__(os__);
         }
         os__.endWriteEncaps();
         result__.send__(true);
     }
     catch(Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return result__;
 }