public static Ice.DispatchStatus Join___(Lobby obj__, IceInternal.Incoming inS__, Ice.Current current__) { checkMode__(Ice.OperationMode.Normal, current__.mode); IceInternal.BasicStream is__ = inS__.istr(); is__.startReadEncaps(); string nick; nick = is__.readString(); string topic; topic = is__.readString(); Ice.Identity listenerIdentity; listenerIdentity = null; if(listenerIdentity == null) { listenerIdentity = new Ice.Identity(); } listenerIdentity.read__(is__); is__.endReadEncaps(); IceInternal.BasicStream os__ = inS__.ostr(); try { Chat.RoomAccess ret__ = obj__.Join(nick, topic, listenerIdentity, current__); if(ret__ == null) { Chat.RoomAccess tmp__ = new Chat.RoomAccess(); tmp__.write__(os__); } else { ret__.write__(os__); } return Ice.DispatchStatus.DispatchOK; } catch(Chat.IChatException ex__) { os__.writeUserException(ex__); return Ice.DispatchStatus.DispatchUserException; } }
public Chat.RoomAccess Join(string nick, string topic, Ice.Identity listenerIdentity, _System.Collections.Generic.Dictionary<string, string> context__) { IceInternal.Outgoing og__ = handler__.getOutgoing("Join", Ice.OperationMode.Normal, context__); try { try { IceInternal.BasicStream os__ = og__.ostr(); os__.writeString(nick); os__.writeString(topic); if(listenerIdentity == null) { Ice.Identity tmp__ = new Ice.Identity(); tmp__.write__(os__); } else { listenerIdentity.write__(os__); } } catch(Ice.LocalException ex__) { og__.abort(ex__); } bool ok__ = og__.invoke(); try { if(!ok__) { try { og__.throwUserException(); } catch(Chat.IChatException) { throw; } catch(Ice.UserException ex__) { throw new Ice.UnknownUserException(ex__.ice_name(), ex__); } } IceInternal.BasicStream is__ = og__.istr(); is__.startReadEncaps(); Chat.RoomAccess ret__; ret__ = null; if(ret__ == null) { ret__ = new Chat.RoomAccess(); } ret__.read__(is__); is__.endReadEncaps(); return ret__; } catch(Ice.LocalException ex__) { throw new IceInternal.LocalExceptionWrapper(ex__, false); } } finally { handler__.reclaimOutgoing(og__); } }
public Chat.RoomAccess Join(string nick, string topic, Ice.Identity listenerIdentity, _System.Collections.Generic.Dictionary<string, string> context__) { Ice.Current current__ = new Ice.Current(); initCurrent__(ref current__, "Join", Ice.OperationMode.Normal, context__); Chat.RoomAccess result__ = new Chat.RoomAccess(); Ice.UserException userException__ = null; IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__) { Lobby servant__ = null; try { servant__ = (Lobby)obj__; } catch(_System.InvalidCastException) { throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation); } try { result__ = servant__.Join(nick, topic, listenerIdentity, current__); return Ice.DispatchStatus.DispatchOK; } catch(Ice.UserException ex__) { userException__ = ex__; return Ice.DispatchStatus.DispatchUserException; } }; IceInternal.Direct direct__ = null; try { direct__ = new IceInternal.Direct(current__, run__); try { Ice.DispatchStatus status__ = direct__.servant().collocDispatch__(direct__); if(status__ == Ice.DispatchStatus.DispatchUserException) { throw userException__; } _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK); } finally { direct__.destroy(); } } catch(Chat.IChatException) { throw; } catch(Ice.SystemException) { throw; } catch(System.Exception ex__) { IceInternal.LocalExceptionWrapper.throwWrapper(ex__); } return result__; }
public Chat.RoomAccess end_Join(Ice.AsyncResult r__) { IceInternal.OutgoingAsync outAsync__ = (IceInternal.OutgoingAsync)r__; IceInternal.OutgoingAsync.check__(outAsync__, this, __Join_name); if(!outAsync__.wait__()) { try { outAsync__.throwUserException__(); } catch(Chat.IChatException) { throw; } catch(Ice.UserException ex__) { throw new Ice.UnknownUserException(ex__.ice_name(), ex__); } } Chat.RoomAccess ret__; IceInternal.BasicStream is__ = outAsync__.istr__; is__.startReadEncaps(); ret__ = null; if(ret__ == null) { ret__ = new Chat.RoomAccess(); } ret__.read__(is__); is__.endReadEncaps(); return ret__; }