Trying out samples for Azure Logic App with Azure Web-API running for more than 2 minutes(as HTTP request timeouts within 120sec)
As azure functions have time limitation of 5 minutes to max 10 minutes, i have created the following Azure Web-API(for now just added delay)
[HttpPost]
[Route("api/Values/subscribe")]
public async Task<HttpResponseMessage> SubscribeAsync([FromBody]SubscriptionData subscriptionData)
{
TimeSpan ts = TimeSpan.FromMinutes(3);
await Task.Delay(ts);
return Request.CreateResponse(HttpStatusCode.OK);
}
[HttpPost]
[Route("api/Values/unsubscribe")]
public HttpResponseMessage Unsubscribe([FromBody]SubscriptionData subscriptionData)
{
return Request.CreateResponse(HttpStatusCode.OK);
}
have added the following HTTP web-hook action in my Logic App HttpWebhook but this to returns BadRequest. Http request failed: the timeout was reached.
also tried with the Web API synchronous but that to dint work.