This is the third part of a series on how to implement a validation plugin using ITeamFoundationRequestFilter.
You can go to the first part by clicking the link below:
In this post I’ll explain how to handle work item create/update requests from WebAccess.
What’s in the request again ?
Last time we figured out what Visual Studio requests to TFS in order to create/update Work Items. With this information, we’ve created a simple validator which prevents a specific user from creating work items. It may work wonders when the request is being sent to the ClientService.asmx service as VS does, but unfortunately this kind of operation is not centralized, so if you try to create the work item through WebAccess, your validation just won’t work.
Keeping that in mind, we’re going to inspect WebAccess to figure out how does it creates/updates work items. It’s actually easier than before because we can see the request in the browser itself: Click here to read more.