public Murmur.Ban[] getBans(_System.Collections.Generic.Dictionary<string, string> context__) { IceInternal.Outgoing og__ = handler__.getOutgoing("getBans", Ice.OperationMode.Idempotent, context__); try { bool ok__ = og__.invoke(); try { if(!ok__) { try { og__.throwUserException(); } catch(Murmur.ServerBootedException) { throw; } catch(Ice.UserException ex__) { throw new Ice.UnknownUserException(ex__.ice_name(), ex__); } } IceInternal.BasicStream is__ = og__.istr(); is__.startReadEncaps(); Murmur.Ban[] ret__; { int szx__ = is__.readSize(); is__.startSeq(szx__, 20); ret__ = new Murmur.Ban[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { ret__[ix__] = new Murmur.Ban(); 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 Murmur.Ban[] read(IceInternal.BasicStream is__) { Murmur.Ban[] v__; { int szx__ = is__.readSize(); is__.startSeq(szx__, 20); v__ = new Murmur.Ban[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { v__[ix__] = new Murmur.Ban(); v__[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } return v__; }
public static Murmur.Ban[] read(IceInternal.BasicStream is__) { Murmur.Ban[] v__; { int szx__ = is__.readAndCheckSeqSize(16); v__ = new Murmur.Ban[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { v__[ix__] = new Murmur.Ban(); v__[ix__].read__(is__); } } return v__; }
public static Ice.DispatchStatus setBans___(Server obj__, IceInternal.Incoming inS__, Ice.Current current__) { checkMode__(Ice.OperationMode.Idempotent, current__.mode); IceInternal.BasicStream is__ = inS__.istr(); is__.startReadEncaps(); Murmur.Ban[] bans; { int szx__ = is__.readSize(); is__.startSeq(szx__, 20); bans = new Murmur.Ban[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { bans[ix__] = new Murmur.Ban(); bans[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } is__.endReadEncaps(); AMD_Server_setBans cb__ = new _AMD_Server_setBans(inS__); try { obj__.setBans_async(cb__, bans, current__); } catch(_System.Exception ex__) { cb__.ice_exception(ex__); } return Ice.DispatchStatus.DispatchAsync; }
public Murmur.Ban[] end_getBans(Ice.AsyncResult r__) { IceInternal.OutgoingAsync outAsync__ = (IceInternal.OutgoingAsync)r__; IceInternal.OutgoingAsync.check__(outAsync__, this, __getBans_name); if(!outAsync__.wait__()) { try { outAsync__.throwUserException__(); } catch(Murmur.InvalidSecretException) { throw; } catch(Murmur.ServerBootedException) { throw; } catch(Ice.UserException ex__) { throw new Ice.UnknownUserException(ex__.ice_name(), ex__); } } Murmur.Ban[] ret__; IceInternal.BasicStream is__ = outAsync__.istr__; is__.startReadEncaps(); { int szx__ = is__.readAndCheckSeqSize(16); ret__ = new Murmur.Ban[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { ret__[ix__] = new Murmur.Ban(); ret__[ix__].read__(is__); } } is__.endReadEncaps(); return ret__; }