Click here to Skip to main content
13,140,231 members (47,705 online)
Rate this:
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 17:52pm

1 solution

Rate this: bad
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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 23 Jun 2013
Copyright © CodeProject, 1999-2017
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