title: Long running task api call from logic app to avoid timeout bad request response after many retiries in .Net Core 3.0
body: <p>I  have an azure api app exposing some business apis.
  I need to implement Long running task strategy because I want to call one of these apis from my Logic App because that api takes more than 2 minutes (which is the request <strong>timeout limit</strong>) to respond.</p>
  
  <p>I have read the <strong><a href="https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-create-api-app#webhook-actions" rel="nofollow noreferrer">documentation of Microsoft</a></strong> and I also tried the <strong>git sample</strong> provided <a href="https://github.com/logicappsio/LogicAppTriggersExample/blob/master/LogicAppTriggers/Controllers/WebhookTriggerController.cs" rel="nofollow noreferrer">here</a>.
  Unfortunately, that didn’t help me much because the samples on git are not very explicit and not compatible with <code>.Net Core 3.0.</code></p>
  
  <p>So, Actually, I am using asp net core 3.0. using DI and async calls in my app.
  Here an example of a controller api that I want to test</p>
  
  <pre><code>        [HttpGet]
          [Route("PollDataIntoProduction")]
          public async Task&lt;IActionResult&gt; PrePollData()
          {
              await _pollingService.ProduceData();
              return Ok($"Polling Execution Success at {DateTime.Now}");
          }
  </code></pre>
  
  <p><code>_pollingService</code> is the service injected with DI that does the work for me and is async</p>
  
  <p>And here is an http call example inside my logic app (which taking more than 2 minutes and causing bad request and timeout )</p>
  
  <p><a href="https://i.stack.imgur.com/vfqn5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vfqn5.png" alt="enter image description here"></a></p>
  
  <p>Can anyone provide me a working code sample with .Net Core 3.0 on how I can effectively implement <code>the webhook pattern</code> to wait for my api to finish processing in my logic app please?</p>
  
  <p>Thank you in advance,</p>