Ejemplo n.º 1
0
        public void ReceiveCall()
        {
            var message = new RpcMessage();

            message.CallMessage = new RpcMessage.Call();
            controller.Receive(message);

            server.Verify(s => s.ReceiveCall(message));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles a message which has been received. Can be called by multiple threads concurrently, it is up to the
 /// RpcClient and RpcServer to ensure they are thread-safe.
 /// </summary>
 /// <returns></returns>
 protected void Receive(RpcMessage message)
 {
     controller.Receive(message);
 }