Ejemplo n.º 1
0
        public int Send(GrapheneMethods method, int api, params object[] args)
        {
            GrapheneSocketRequest r = new GrapheneSocketRequest(method, m_id++, api, args);
            string request = JsonSerializer.SerializeToString<GrapheneSocketRequest>(r);
            m_socket.Send(request);

            return m_id - 1;
        }
Ejemplo n.º 2
0
        public int Send(GrapheneMethods method, int api, params object[] args)
        {
            GrapheneSocketRequest r = new GrapheneSocketRequest(method, m_id++, api, args);
            string request          = JsonSerializer.SerializeToString <GrapheneSocketRequest>(r);

            m_socket.Send(request);

            return(m_id - 1);
        }