Taking a simple service as below - I'm unable to get APM to capture any exceptions with the async implementation. (the none async implementation is good - as expected)
Is this pattern supported with APM monitoring?
[ServiceContract]
public interface IService1
{
[OperationContract()]
void Call1(string arg1);
[OperationContract()]
Task<string> Call2(string arg1);
}
public class Service1 : IService1
{
public void Call1(string arg1)
{
throw new Exception("Call1 failed");
}
public async Task<string> Call2(string arg1)
{
// I realize this is a naff implementation - but it simplifies the issue I'm seeing
throw new Exception("Call2 failed");
}
}