I know that there is of course a stack trace for keeping track of calls to methods within your program however it does not show a call to a method in a service as part of the trace. Is there any built in functionality in .NET to recognise when a call is made to a WCF service and then store the name of the called method?
For example we have the method below:
private void DoStuff()
{
object = Service.ServiceMethodCall();
}
On the stack trace that I see I can recover the name of DoStuff() and other details but not the ServiceMethodCall(). I don't want to simply hard code the name of this method into my output. There has to be a better way.
Thanks