title: Task callback in one line C#
body: <p>I have the following piece of code:</p>
  <pre><code>static void Main(string[] args)
  {
      string param = &quot;&quot;;
      doMessage doMss = new doMessage();
      doMss._msg.onResponseEvent += doMss_onResponseEvent;
      doMss.sendMsg(param);
  }
  
  private void doMss_onResponseEvent(object sender, responseEventArgs e)
  {
      if (e.rxedMsg is mssCustomMessage)
      {
          if (e.rxeMsg.result.isSucessfull)
          {
              object returnResult = e.rxeMsg;
          }
      }
  }        
  </code></pre>
  <p>Here the call back method returns success if all went well within and a result object. I need to do make multiple sequential calls to the above pattern however I wish to stop this interaction process if any one of the callbacks fails.</p>