title: Async method MVS AJAX WCF not async?
body: <p>I'm having a problem using an async wcf method frome my serverside called by ajax method.
  Here is the client side code:</p>
  <pre><code>        var options = {
              'url': '/Home/MyControllerMethod',
              'data': {
                  p1: p1,
                  p2: p2,
                  p3: lbl.GetValue(),
                  //ville: Ville.GetValue(),
                  //adresse: Adresse.GetValue()                
              }
          };
  
          $.ajax(options).done(function (liste) { 
          //do stuff 
          });
  </code></pre>
  <p>Here is my multiple tests for controller side code:</p>
  <p>Test 1</p>
  <pre><code>    public ActionResult MyControllerMethod(string p1= null, string p2 = null, string p3= null, string p4= null)
      {
        var wcfClientChannel = UtilsDAO.GetMyWCF();
        var liste = wcfClientChannel.MyWCFGetListAsync(p1, &quot;&quot;, p2, &quot;&quot;);
        return Json(liste, JsonRequestBehavior.AllowGet);
      }
  </code></pre>
  <p>Test 2</p>
  <pre><code>public async Task&lt;ActionResult&gt; MyControllerMethod(string p1= null, string p2 = null, string p3= null, string p4= null)
          {
            var wcfClientChannel = UtilsDAO.GetMyWCF();
            var liste = await wcfClientChannel.MyWCFGetListAsync(p1, &quot;&quot;, p2, &quot;&quot;);
            return Json(liste, JsonRequestBehavior.AllowGet);
          }
  </code></pre>
  <p>Test 2</p>
  <pre><code>public async Task&lt;ActionResult&gt; MyControllerMethod(string p1= null, string p2 = null, string p3= null, string p4= null)
          {
            var wcfClientChannel = UtilsDAO.GetMyWCF();
            var liste = await wcfClientChannel.MyWCFGetListAsync(p1, &quot;&quot;, p2, &quot;&quot;).ConfigureAwait(false);
            return Json(liste, JsonRequestBehavior.AllowGet);
          }
  </code></pre>
  <p>MyWCFGetListAsync take 15sec to get values.
  All my tests are &quot;working&quot; but not as i'm expecting.
  My problem is that all other ajax calls/method are waiting that MyControllerMethod() has finished.</p>
  <p>I'm probably missing something but i don't understand two things:</p>
  <ul>
  <li>why is my ajax is not executing asynchronously?</li>
  <li>why my method is locking the thread while he waits for results in test 2 and Test 3?</li>
  </ul>