public void getACL(int channelid, out Murmur.ACL[] acls, out Murmur.Group[] groups, out bool inherit, _System.Collections.Generic.Dictionary<string, string> context__) { IceInternal.Outgoing og__ = handler__.getOutgoing("getACL", Ice.OperationMode.Idempotent, context__); try { try { IceInternal.BasicStream os__ = og__.ostr(); os__.writeInt(channelid); } catch(Ice.LocalException ex__) { og__.abort(ex__); } bool ok__ = og__.invoke(); try { if(!ok__) { try { og__.throwUserException(); } catch(Murmur.InvalidChannelException) { throw; } catch(Murmur.ServerBootedException) { throw; } catch(Ice.UserException ex__) { throw new Ice.UnknownUserException(ex__.ice_name(), ex__); } } IceInternal.BasicStream is__ = og__.istr(); is__.startReadEncaps(); { int szx__ = is__.readSize(); is__.startSeq(szx__, 16); acls = new Murmur.ACL[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { acls[ix__] = new Murmur.ACL(); acls[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } { int szx__ = is__.readSize(); is__.startSeq(szx__, 7); groups = new Murmur.Group[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { groups[ix__] = new Murmur.Group(); groups[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } inherit = is__.readBool(); is__.endReadEncaps(); } catch(Ice.LocalException ex__) { throw new IceInternal.LocalExceptionWrapper(ex__, false); } } finally { handler__.reclaimOutgoing(og__); } }
public static Murmur.Group[] read(IceInternal.BasicStream is__) { Murmur.Group[] v__; { int szx__ = is__.readSize(); is__.startSeq(szx__, 7); v__ = new Murmur.Group[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { v__[ix__] = new Murmur.Group(); v__[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } return v__; }
public static Murmur.Group[] read(IceInternal.BasicStream is__) { Murmur.Group[] v__; { int szx__ = is__.readAndCheckSeqSize(7); v__ = new Murmur.Group[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { v__[ix__] = new Murmur.Group(); v__[ix__].read__(is__); } } return v__; }
public static Ice.DispatchStatus setACL___(Server obj__, IceInternal.Incoming inS__, Ice.Current current__) { checkMode__(Ice.OperationMode.Idempotent, current__.mode); IceInternal.BasicStream is__ = inS__.istr(); is__.startReadEncaps(); int channelid; channelid = is__.readInt(); Murmur.ACL[] acls; { int szx__ = is__.readSize(); is__.startSeq(szx__, 16); acls = new Murmur.ACL[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { acls[ix__] = new Murmur.ACL(); acls[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } Murmur.Group[] groups; { int szx__ = is__.readSize(); is__.startSeq(szx__, 7); groups = new Murmur.Group[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { groups[ix__] = new Murmur.Group(); groups[ix__].read__(is__); is__.checkSeq(); is__.endElement(); } is__.endSeq(szx__); } bool inherit; inherit = is__.readBool(); is__.endReadEncaps(); AMD_Server_setACL cb__ = new _AMD_Server_setACL(inS__); try { obj__.setACL_async(cb__, channelid, acls, groups, inherit, current__); } catch(_System.Exception ex__) { cb__.ice_exception(ex__); } return Ice.DispatchStatus.DispatchAsync; }
public void end_getACL(out Murmur.ACL[] acls, out Murmur.Group[] groups, out bool inherit, Ice.AsyncResult r__) { IceInternal.OutgoingAsync outAsync__ = (IceInternal.OutgoingAsync)r__; IceInternal.OutgoingAsync.check__(outAsync__, this, __getACL_name); if(!outAsync__.wait__()) { try { outAsync__.throwUserException__(); } catch(Murmur.InvalidChannelException) { throw; } catch(Murmur.InvalidSecretException) { throw; } catch(Murmur.ServerBootedException) { throw; } catch(Ice.UserException ex__) { throw new Ice.UnknownUserException(ex__.ice_name(), ex__); } } IceInternal.BasicStream is__ = outAsync__.istr__; is__.startReadEncaps(); { int szx__ = is__.readAndCheckSeqSize(16); acls = new Murmur.ACL[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { acls[ix__] = new Murmur.ACL(); acls[ix__].read__(is__); } } { int szx__ = is__.readAndCheckSeqSize(7); groups = new Murmur.Group[szx__]; for(int ix__ = 0; ix__ < szx__; ++ix__) { groups[ix__] = new Murmur.Group(); groups[ix__].read__(is__); } } inherit = is__.readBool(); is__.endReadEncaps(); }