orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Update Samples and docs to show necessity of using ObserverSubscriptionManager.IsSubscribed()

Open finsterdexter opened this issue 8 years ago • 5 comments

Both the Orleans docs and several samples just call ObserverSubscriptionManager.Subscribe() without handling the OrleansException that is generated if the observer that is subbed/unsubbed is already subbed/unsubbed. That seems like an important failure state to handle, especially since the current docs actually suggest re-subbing as a means of improving reliability of this feature.

finsterdexter avatar Feb 21 '18 16:02 finsterdexter

@finsterdexter Valid point. Thank you. Would you be willing to contribute an update to the docs and samples?

sergeybykov avatar Feb 21 '18 18:02 sergeybykov

Yeah possibly. Gotta see if I can fit it into my spare time. I mainly wanted to float the issue before tackling it.

finsterdexter avatar Feb 21 '18 18:02 finsterdexter

Yikes, I didn't realize all my commit --amends would end up on here... sorry about the mess!

20161119151919 sorry_about_the_mess

finsterdexter avatar Apr 19 '18 14:04 finsterdexter

thanks for pointing this out for us. Your PR looks good. I merged it.

xiazen avatar Apr 20 '18 17:04 xiazen

close issue, since issue resolved through #4489

xiazen avatar Apr 20 '18 17:04 xiazen