title: Resource Group project error
body: <p>When trying to use this code from:
  <a href="https://github.com/jeffhollan/LogicAppsAsyncResponseSample/issues" rel="nofollow noreferrer">LogicAppsAsyncResponseSample</a>
  I created this method for my initial call:</p>
  
  <pre><code>    public async Task&lt;dynamic&gt; InsertRecords943(string interchangeId, [FromBody] dynamic inputjson)
      {
          Guid id = Guid.NewGuid();
          RunningTasks[id] = string.Empty;
          new Thread(() =&gt; DoInsertRecords943(id, interchangeId, inputjson)).Start();   //Start the thread of work, but continue on before it completes
          HttpResponseMessage responseMessage = Request.CreateResponse(HttpStatusCode.Accepted);
          responseMessage.Headers.Add("location", String.Format("{0}://{1}/api/status/{2}", Request.RequestUri.Scheme, Request.RequestUri.Host, id));
          responseMessage.Headers.Add("retry-after", "20");
          return responseMessage;
      }
  </code></pre>
  
  <p>But Code Analysis is producing this error:</p>
  
  <p>Error   CS1998  This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.</p>
  
  <p>So do I want to make the method synchronous:</p>
  
  <pre><code>public dynamic InsertRecords940(string interchangeId, [FromBody] dynamic inputjson)
  </code></pre>
  
  <p>Or change the new Thread line to be:</p>
  
  <pre><code>await Task.Run(DoInsertRecords943(id, interchangeId, inputjson));
  </code></pre>
  
  <p>Will the later even work, won't it still cause the caller to timeout?  Making it synchronous should actually work.</p>