'Bot famework composer - Dependency injection in Custom Action

I am referring to this article for running a long running task in background while returning 200 response immediately in bot framework composer. https://github.com/EricDahlvang/ImmediateAcceptAdapter

Here, instead of Thread.Sleep in Custom Action, I have to make an http call which sometimes takes more than 15 secs. I need some help in injecting a service with http call in the Sleep Custom Action.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source