Ejemplo n.º 1
0
        protected virtual void OnMessageRecieved(object sender, RpcResponseMessageEventArgs args)
        {
            var handler = MessageReceived;

            if (handler != null)
            {
                handler(this, args);
            }
        }
        private void RpcMessageResponseHandler(object sender, RpcResponseMessageEventArgs e)
        {
            if (e.Message.Id != this.id)
            {
                return;
            }

            // this is the ID we can use to filter future subscription messages on, if for example we were listening to block headers
            // and new pending transactions
            subscriptionId = e.Message.GetResult <string>();
        }