ProcessRequest() public method

Handles the request by deserializing it and invoking the requested method on the handler object
public ProcessRequest ( string request ) : InvocationResult
request string The serialized request in the format
return InvocationResult
 public void WaitForRegistration()
 {
     Task.Run(async () =>
     {
         var reader = new StreamReader(TcpClient.GetStream());
         var clientChannelProxy = new ChannelInvoker(this);
         var message = await reader.ReadLineAsync();
         if (!clientChannelProxy.ProcessRequest(message).Invoked)
         {
             OnInvalidRequest(InvalidMessage.For(message));
         }
     });
 }
 /// <summary>
 /// Invokes the method from the message on the handler object and sends back the return value
 /// </summary>
 public static async void HandleRequest(AppServiceRequest request, object handler, string message)
 {
     var invoker = new ChannelInvoker(handler);
     var result = invoker.ProcessRequest(message);
     await SendResponse(request, result);
 }