Exemple #1
0
 public static Ice.DispatchStatus getCurrentKFConfig___(KP obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     inS__.istr().skipEmptyEncaps();
     IceInternal.BasicStream os__ = inS__.ostr();
     KeeICE.KPlib.KFConfiguration ret__ = obj__.getCurrentKFConfig(current__);
     if(ret__ == null)
     {
         KeeICE.KPlib.KFConfiguration tmp__ = new KeeICE.KPlib.KFConfiguration();
         tmp__.write__(os__);
     }
     else
     {
         ret__.write__(os__);
     }
     return Ice.DispatchStatus.DispatchOK;
 }
Exemple #2
0
 public bool setCurrentKFConfig(KeeICE.KPlib.KFConfiguration config, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("setCurrentKFConfig", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             if(config == null)
             {
                 KeeICE.KPlib.KFConfiguration tmp__ = new KeeICE.KPlib.KFConfiguration();
                 tmp__.write__(os__);
             }
             else
             {
                 config.write__(os__);
             }
         }
         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();
             bool ret__;
             ret__ = is__.readBool();
             is__.endReadEncaps();
             return ret__;
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }