public static Ice.DispatchStatus addGroup___(KP obj__, IceInternal.Incoming inS__, Ice.Current current__) { checkMode__(Ice.OperationMode.Normal, current__.mode); IceInternal.BasicStream is__ = inS__.istr(); is__.startReadEncaps(); string name; name = is__.readString(); string parentUuid; parentUuid = is__.readString(); is__.endReadEncaps(); IceInternal.BasicStream os__ = inS__.ostr(); KeeICE.KPlib.KPGroup ret__ = obj__.addGroup(name, parentUuid, current__); if(ret__ == null) { KeeICE.KPlib.KPGroup tmp__ = new KeeICE.KPlib.KPGroup(); tmp__.write__(os__); } else { ret__.write__(os__); } return Ice.DispatchStatus.DispatchOK; }
public static Ice.DispatchStatus getRoot___(KP obj__, IceInternal.Incoming inS__, Ice.Current current__) { checkMode__(Ice.OperationMode.Normal, current__.mode); inS__.istr().skipEmptyEncaps(); IceInternal.BasicStream os__ = inS__.ostr(); KeeICE.KPlib.KPGroup ret__ = obj__.getRoot(current__); if(ret__ == null) { KeeICE.KPlib.KPGroup tmp__ = new KeeICE.KPlib.KPGroup(); tmp__.write__(os__); } else { ret__.write__(os__); } return Ice.DispatchStatus.DispatchOK; }
public KeeICE.KPlib.KPGroup getRoot(_System.Collections.Generic.Dictionary<string, string> context__) { Ice.Current current__ = new Ice.Current(); initCurrent__(ref current__, "getRoot", Ice.OperationMode.Normal, context__); KeeICE.KPlib.KPGroup result__ = new KeeICE.KPlib.KPGroup(); IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__) { KP servant__ = null; try { servant__ = (KP)obj__; } catch(_System.InvalidCastException) { throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation); } result__ = servant__.getRoot(current__); return Ice.DispatchStatus.DispatchOK; }; IceInternal.Direct direct__ = null; try { direct__ = new IceInternal.Direct(current__, run__); try { Ice.DispatchStatus status__ = direct__.servant().collocDispatch__(direct__); _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK); } finally { direct__.destroy(); } } catch(Ice.SystemException) { throw; } catch(System.Exception ex__) { IceInternal.LocalExceptionWrapper.throwWrapper(ex__); } return result__; }
public KeeICE.KPlib.KPGroup getRoot(_System.Collections.Generic.Dictionary<string, string> context__) { IceInternal.Outgoing og__ = handler__.getOutgoing("getRoot", Ice.OperationMode.Normal, context__); try { 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(); KeeICE.KPlib.KPGroup ret__; ret__ = null; if(ret__ == null) { ret__ = new KeeICE.KPlib.KPGroup(); } ret__.read__(is__); is__.endReadEncaps(); return ret__; } catch(Ice.LocalException ex__) { throw new IceInternal.LocalExceptionWrapper(ex__, false); } } finally { handler__.reclaimOutgoing(og__); } }
public KeeICE.KPlib.KPGroup[] getChildGroups(string uuid, _System.Collections.Generic.Dictionary<string, string> context__) { IceInternal.Outgoing og__ = handler__.getOutgoing("getChildGroups", Ice.OperationMode.Normal, context__); try { try { IceInternal.BasicStream os__ = og__.ostr(); os__.writeString(uuid); } 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(); KeeICE.KPlib.KPGroup[] ret__; { int szx__ = is__.readSize(); is__.startSeq(szx__, 3); ret__ = new KeeICE.KPlib.KPGroup[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { ret__[ix__] = new KeeICE.KPlib.KPGroup(); ret__[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } is__.endReadEncaps(); return ret__; } catch(Ice.LocalException ex__) { throw new IceInternal.LocalExceptionWrapper(ex__, false); } } finally { handler__.reclaimOutgoing(og__); } }
public static KeeICE.KPlib.KPGroup[] read(IceInternal.BasicStream is__) { KeeICE.KPlib.KPGroup[] v__; { int szx__ = is__.readSize(); is__.startSeq(szx__, 3); v__ = new KeeICE.KPlib.KPGroup[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { v__[ix__] = new KeeICE.KPlib.KPGroup(); v__[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } return v__; }