Exemple #1
0
 public void NotifyPost(Chat.Post newPost, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("NotifyPost", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             if(newPost == null)
             {
                 Chat.Post tmp__ = new Chat.Post();
                 tmp__.write__(os__);
             }
             else
             {
                 newPost.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
 public static Ice.DispatchStatus NotifyPost___(Listener obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     Chat.Post newPost;
     newPost = null;
     if(newPost == null)
     {
         newPost = new Chat.Post();
     }
     newPost.read__(is__);
     is__.endReadEncaps();
     AMD_Listener_NotifyPost cb__ = new _AMD_Listener_NotifyPost(inS__);
     try
     {
         obj__.NotifyPost_async(cb__, newPost, current__);
     }
     catch(_System.Exception ex__)
     {
         cb__.ice_exception(ex__);
     }
     return Ice.DispatchStatus.DispatchAsync;
 }
Exemple #3
0
 private Ice.AsyncResult<Chat.Callback_Listener_NotifyPost> begin_NotifyPost(Chat.Post newPost, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync<Chat.Callback_Listener_NotifyPost> result__ = new IceInternal.OnewayOutgoingAsync<Chat.Callback_Listener_NotifyPost>(this, __NotifyPost_name, NotifyPost_completed__, cookie__);
     if(cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__NotifyPost_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.ostr__;
         if(newPost == null)
         {
             Chat.Post tmp__ = new Chat.Post();
             tmp__.write__(os__);
         }
         else
         {
             newPost.write__(os__);
         }
         os__.endWriteEncaps();
         result__.send__(true);
     }
     catch(Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return result__;
 }