示例#1
0
 public void InterceptMessage()
 {
     try
     {
         _interceptorClient.InterceptMessageAsync(msg => {
             _value = msg;
             string outputMessage = GetMessage();
             Console.WriteLine(outputMessage);
         });
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error while intercepting message: " + ex.Message); // log somewhere
         throw;
     }
 }