Esempio n. 1
0
File: test.cs Progetto: demonxjj/TCE
        public void onMessage_async(string message, ITerminal_AsyncCallBack async, Dictionary <string, string> props, object cookie)
        {
            bool       r_5 = false;
            RpcMessage m_6 = new RpcMessage(RpcMessage.CALL | RpcMessage.ASYNC);

            m_6.ifidx     = 3;
            m_6.opidx     = 0;
            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(message, 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);
            }
        }
Esempio n. 2
0
File: test.cs Progetto: demonxjj/TCE
 public void onMessage_async(string message, ITerminal_AsyncCallBack async)
 {
     onMessage_async(message, async, null, null);
 }
Esempio n. 3
0
File: test.cs Progetto: demonxjj/TCE
 public void onMessage_async(string message, ITerminal_AsyncCallBack async, Dictionary <string, string> props)
 {
     onMessage_async(message, async, props, null);
 }