Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
CCR Programming - Jeffrey Richter and George Chrysanthakopoulos
Oct 17, 2006 at 2:23 AMI have a question:
I am trying to build a method which may be either asynchronous or synchronous, using CCR internally (to the method) to accomplish the asynchronousicity...
So basically I have a method which has two local ports, one for the input message and the other for the returned results.
Everything is fine until I want to block on the receiver for the result port in order to acheive 'synchronous' operation.
How can I make the Activate call block?
Is there a better method for doing this?
Thanks,
Shmarya
CCR Programming - Jeffrey Richter and George Chrysanthakopoulos
Oct 02, 2006 at 11:46 PMHi Georgio...
I have a number of items which I want to execute 'concurrently', in addition, I want to be able to run specific code only when all the items have completed... I suppose I could use a multipleItemReceiver on a 'Response' port - IE. setup some persistent arbiter to run the work on the items concurrently, and then have each item post a response to the central Response port - then have the initial calling method register an arbiter with a choice between a timeout and a multipleItemReciever...
In this case, how can I unregister the original receivers when a timeout occurs? I suppose I can put it all inside a single interleave... but I am not sure that is the best possible solution...
One question regarding this: is the implementation of Port<> thread safe? IE, is it possible to post to it from multiple threads?
Another (unrelated) question: How does the Ccr function across AppDomain/Process boundaries via Remoting? Are there any caveats I should be aware of?
Thanks,
Shmarya
CCR Programming - Jeffrey Richter and George Chrysanthakopoulos
Sep 25, 2006 at 7:50 AMCCR is great, I'm really enjoying it!
Two quick questions:
1. How can I get some code to execute when the last item is removed from a port/dispatcherQueue? IE: I want to post a set of related workitems, yield, and continue only when all items have been dealt with...
2. I have a set of related workitems which I post into a persistent port, I then go and set up an Interleave arbiter so that if one fails, the entire arbitration is torn down. How can I ensure that the items that where in the port's queue at the time the teardown occurs are popped out - IE: how can I make sure they won't be around the next time some Receivers are attached to the Port?
Thanks,
Shmarya