Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to figure out the best approach in C# to allow a website that I have created to start up various programs on the server remotely, but not at the same time. I figured through .NET I could create a program that could react to various button clicks on the website, then populate a list that the program will execute in turn. As each process is finished it is grayed out and ignored and the next process is executed. I want to also be able to create priorities for certain task and an interrupt to either pause all task or cancel. Any help is very appreciated!
Posted

1 solution

Have you considered using the Workflow library? If you have and don't think it's suitable then have a look at something I hacked together something a while ago. It might serve as a jumping off point for you.

ΝUnit Inspired Task Runner[^]

As outlined the code builds fixed order sequences of tasks and it doesn't give you priority or interrupt handling so using it as it stands would reduce to creating task sequences each containing a single tasks. I don't think it should be too difficult to extend to achieve what you want.
 
Share this answer
 
v2
Comments
Rinion 23-Jun-13 9:32am    
I did Find this very Helpful Thank you. Ill see about attaching the DLL reference to my projects and go from there. Thank you!
CHill60 23-Jun-13 10:14am    
Quite nice - my 5. Excuse me updating your solution with href tags on the link

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