Now we are able to use our existing APM infrastructure to make APM calls to synchronous methods.

In my scenario, I am converting classes exposed over webservices to direct project reference. There are many classes with many methods and doing this manually would be error prone and mind numbing. So I used Roslyn library and wrote a simple class that

reads in a file

select methods marked with [WebMethod] attributes

Generates the above 3 methods for each such method

Writes them to a file

I have posted this on GitHub gists so that it may help someone save some time.