Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All

I am trying to automate the build deployment process using TFS in MVC.
While getting the status of build after build is triggered, I am getting redirected to action method after the initial statuschanged event.This issue is occuring after deployment. Application is working fine on local.
Please find below the code snippet
C#
Build.statuschanged += new StatusChangedEventHandler(queueBuild_statuschanged)


Here statuschanged event will continuously get the status of the build whenever the status changes from Inprogress to Queue/ Completed.
So Sometimes I am getting status as completed but many times after first status change, the execution control is nevigating to controller method.

Please let me know how to avoid this multiple call to actionmethod as this is causing session value to be set to Null and nothing is working ahead.

Thanks in Advance
Mahesh
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900