Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 22-Jun-13 18:52pm
Rinion338

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
v2
Comments
Rinion at 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 at 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)

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 290
2 Richard MacCutchan 265
3 BillWoodruff 235
4 Suraj Sahoo | Coding Passion 175
0 OriginalGriff 8,804
1 Sergey Alexandrovich Kryukov 7,457
2 DamithSL 5,689
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 23 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100