In extension to this question
I want to find out if there is any way where we can identify all the useless methods in WCF service.
It doesn't have to be any tool/app, but I need ideas to perform the cleanup.
In extension to this question
I want to find out if there is any way where we can identify all the useless methods in WCF service.
It doesn't have to be any tool/app, but I need ideas to perform the cleanup.
If your wcf service is in VS, you can try the VS built-in feature for clearing unused code:
Right-click your solution, click analyze and code cleanup
, click configure code cleanup
, and select unused code. Then run code cleanup after you've configured it.
It may be able to help you remove unused methods or parameters.
Update:
If you want to know which methods are called by the client and how many times, you can add the name of the method call and how many times to the code and store it in the database.