Group,
I'm writing a dotnet windows service that will create and maintain a
collection of COM components. These components all implement the same
interface, and some are written in VC++ 6 and some written in C#
(registered for COM interop). Once every minute, the windows service
will need to call an "Execute" method on each component in the
collection, and here's the thing: I need those method calls to happen
asynchronously. So they should all start at (more or less) the same
time and run concurrently.
Right now what I'm looking at for this is storing the objects in a
collection class e.g. ArrayList, then for each one, I would call its
"Execute" method via a QueueUserWorkItem call. But I'm worried that
this may not be the best, or most efficient way to do this. What are
the options for such a service, and what would you recommend?
Thanks,
John