How do I tell thread-pool to run a delegate in the `STA` stream?

I need a thread pool to work with COM objects inside an ASP.NET project.

 QueueUserWorkItemSTA(WaitCallback) 
+7
source share
1 answer

From the CodeProject Smart Thread Pool article:

Also note that .NET ThreadPool does not support COM calls with single-threaded flat (STA), as ThreadPool threads are MTA by design.

So, I assume that if you give Smart Pool Pool a try, it might fit your requirements.

Personally, I have been using this class successfully since several years.

+6
source

All Articles