public void heartbeat_async(string hello, Server_AsyncCallBack async, Dictionary <string, string> props, object cookie) { bool r_5 = false; RpcMessage m_6 = new RpcMessage(RpcMessage.CALL | RpcMessage.ASYNC); m_6.ifidx = 2; m_6.opidx = 2; m_6.paramsize = 1; m_6.extra.setProperties(props); m_6.cookie = cookie; try{ MemoryStream bos_7 = new MemoryStream(); BinaryWriter dos_8 = new BinaryWriter(bos_7); RpcBinarySerializer.writeString(hello, dos_8); m_6.paramstream = bos_7.ToArray(); m_6.prx = this; m_6.async = async; }catch (Exception e) { throw new RpcException(RpcException.RPCERROR_DATADIRTY, e.ToString()); } r_5 = this.conn.sendMessage(m_6); if (!r_5) { throw new RpcException(RpcException.RPCERROR_SENDFAILED); } }
public void echo_async(string text, Server_AsyncCallBack async, Dictionary <string, string> props, object cookie) { bool r_10 = false; RpcMessage m_11 = new RpcMessage(RpcMessage.CALL | RpcMessage.ASYNC); m_11.ifidx = 2; m_11.opidx = 0; m_11.paramsize = 1; m_11.extra.setProperties(props); m_11.cookie = cookie; try{ MemoryStream bos_12 = new MemoryStream(); BinaryWriter dos_13 = new BinaryWriter(bos_12); RpcBinarySerializer.writeString(text, dos_13); m_11.paramstream = bos_12.ToArray(); m_11.prx = this; m_11.async = async; }catch (Exception e) { throw new RpcException(RpcException.RPCERROR_DATADIRTY, e.ToString()); } r_10 = this.conn.sendMessage(m_11); if (!r_10) { throw new RpcException(RpcException.RPCERROR_SENDFAILED); } }
public void bidirection_async(Server_AsyncCallBack async, Dictionary <string, string> props, object cookie) { bool r_3 = false; RpcMessage m_4 = new RpcMessage(RpcMessage.CALL | RpcMessage.ASYNC); m_4.ifidx = 2; m_4.opidx = 3; m_4.paramsize = 0; m_4.extra.setProperties(props); m_4.cookie = cookie; try{ m_4.prx = this; m_4.async = async; }catch (Exception e) { throw new RpcException(RpcException.RPCERROR_DATADIRTY, e.ToString()); } r_3 = this.conn.sendMessage(m_4); if (!r_3) { throw new RpcException(RpcException.RPCERROR_SENDFAILED); } }
public void bidirection_async(Server_AsyncCallBack async) { bidirection_async(async, null, null); }
public void bidirection_async(Server_AsyncCallBack async, Dictionary <string, string> props) { bidirection_async(async, props, null); }
public void heartbeat_async(string hello, Server_AsyncCallBack async) { heartbeat_async(hello, async, null, null); }
public void heartbeat_async(string hello, Server_AsyncCallBack async, Dictionary <string, string> props) { heartbeat_async(hello, async, props, null); }
public void timeout_async(int secs, Server_AsyncCallBack async) { timeout_async(secs, async, null, null); }
public void timeout_async(int secs, Server_AsyncCallBack async, Dictionary <string, string> props) { timeout_async(secs, async, props, null); }
public void echo_async(string text, Server_AsyncCallBack async) { echo_async(text, async, null, null); }
public void echo_async(string text, Server_AsyncCallBack async, Dictionary <string, string> props) { echo_async(text, async, props, null); }