G
Guest
I have the following situation:
1. Need to create a windows service that can pick up files to process and
hand off the work to a 'Processor' hosted in COM+, this should be
asynchronous, the service will retain a handle (for want of a better word) to
the processor.
2. The 'Processor' will report back to the windows service that gave it the
work during the processing to inform it how the processing is going on.
I have no problem in creating the service or the processor, its just the
communication between them where I have questions.
I understand that I could create a delegate to handle the whole
processor-work functionality. As I understand it the delegate thread is in
the same thread pool as the main process and obviously the more threads in
the pool working the slower the main process will be.
Looking at MSDN the IAsyncResult seems to provide me with a way for the
Processor to report that its finished its work but I need on going
communication between the 2 with the Processor passing information back to
the service which it will in turn use for updating a database. Before .Net I
would have created a callback and have part of the information passed back
indicate the state e.g. data or finished which would allow the service to
decided what to do with the message.
I'm short on time and long on requirements, does anybody know if what I can
do what I need or do I need to change the architecture?
1. Need to create a windows service that can pick up files to process and
hand off the work to a 'Processor' hosted in COM+, this should be
asynchronous, the service will retain a handle (for want of a better word) to
the processor.
2. The 'Processor' will report back to the windows service that gave it the
work during the processing to inform it how the processing is going on.
I have no problem in creating the service or the processor, its just the
communication between them where I have questions.
I understand that I could create a delegate to handle the whole
processor-work functionality. As I understand it the delegate thread is in
the same thread pool as the main process and obviously the more threads in
the pool working the slower the main process will be.
Looking at MSDN the IAsyncResult seems to provide me with a way for the
Processor to report that its finished its work but I need on going
communication between the 2 with the Processor passing information back to
the service which it will in turn use for updating a database. Before .Net I
would have created a callback and have part of the information passed back
indicate the state e.g. data or finished which would allow the service to
decided what to do with the message.
I'm short on time and long on requirements, does anybody know if what I can
do what I need or do I need to change the architecture?