I have some code that I have decorated with a MessageSink Attribute to perform a mediator pattern communication between ViewModels.
The problem I get is: that this method then become marked as unused methods by Resharper.
So I got the hint that I should use MeansImplicitUse to avoid this.
However I tried to annote them with MeansImplicitUse and get the error message that it can only be used on classes. So I cant put it on my decorated method, and putting it on my MessageSinkAttribute class doesnt actually imply the use in the class where the decorated method is.
I would like to avoid putting it on the whole ViewModel if possible but I am not quite sure how this is supposed to work. Is there something I have overlooked or any hints in the right direction would be appreciated.