I have a delegate:
private delegate void ActivitySteps(string inputFolder, string outputFolder);
In one of the methods in my class I register various activities to it :
this.activitySteps = A;
this.activitySteps += B;
and so on...
Finally I invoke it :
this.activitySteps.Invoke(inputFolder, outputFolder);
Now I want to add logging so that I know which of the event i.e. method failed while invoking the delegate. (A or B or some other). Is there a way I could do that so that I don't have to log in each method and could centralize the logging within delegate.