Esempio n. 1
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__);
     }
 }
Esempio n. 2
0
 public void ModifyLogin(KeeICE.KPlib.KPEntry oldLogin, KeeICE.KPlib.KPEntry newLogin, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("ModifyLogin", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             if(oldLogin == null)
             {
                 KeeICE.KPlib.KPEntry tmp__ = new KeeICE.KPlib.KPEntry();
                 tmp__.write__(os__);
             }
             else
             {
                 oldLogin.write__(os__);
             }
             if(newLogin == null)
             {
                 KeeICE.KPlib.KPEntry tmp__ = new KeeICE.KPlib.KPEntry();
                 tmp__.write__(os__);
             }
             else
             {
                 newLogin.write__(os__);
             }
         }
         catch(Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if(!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch(KeeICE.KPlib.KeeICEException)
                 {
                     throw;
                 }
                 catch(Ice.UserException ex)
                 {
                     throw new Ice.UnknownUserException(ex.ice_name(), ex);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             is__.endReadEncaps();
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }