Hi folks, I have a bunch of asmx web services, and in all the methods inside the webservices follow a common pattern
public virtual TestObject Test()
{
LogRequest;
try
{
DoSomething;
}
catch
{
LogException;
}
LogResponse;
return response;
}
and all the methods follow this pattern, there is a lot of code repetition; I want to know if there is a way to do this generically ie: may be in a base class constructor? is it even possible?