ASP.Net Background Queue with SmartThreadPool
Introduction
While I was searching for a example of an C# Background Queue for asynchronous long running tasks in asp.net. I found this framework for managing a thread pool. Smart thread pool is a project on the c# corner site. This seems to be what I am looking for in that I can send jobs to a queue and have a number of threads process them in the background and return the results once completed.
Smart Thread Pool
Smart Thread Pool can set-up a queue of work items and process them in order until the queue is empty. The pool of threads can be set up to have a minimum and maximum number of workers and also these numbers can be changed once the pool is running. items can be added to the queue at any time and by creating a static wrapper class for the pool I can get all the sites users to add into a central queue. The processing can then be defers to a set of classes that do the actual work.
I am using a ASP.Net MVC site to test the static class functionality where their is a button on a page which can be pressed to queue a work item. This seems to be working as I have run the site in different browsers and can add to the shared queue from each browser.
I will post any updates once I have something more exciting to show.