Execute actions asynchronously

Sep 9, 2010 at 8:25 AM

Hello! Do you have any recommendations/code sample on how to execute long running actions in background tread with CM.

Any plans to include AyncActionAttribute or by convention adding "async" postifix to actions?


Sep 9, 2010 at 10:20 AM

Have a look at my blog post: http://marcoamendola.wordpress.com/2010/08/10/a-caliburn-micro-recipe-filters/

I implemented the AsyncActionAttribute feature in CM (along with other filters) using IResult; you can find it in my fork: http://caliburnmicro.codeplex.com/SourceControl/network/Forks/marcoamendola/caliburnmicromarcoamendolafork (/samples/Caliburn.Micro.Recipes.Filters)

Adding a convention is also a good idea, I should add it to the sample.


Sep 9, 2010 at 9:03 PM

Your implementation solves the problem. Any plans on updating your solution to the latest CM trunk?

Sep 12, 2010 at 2:12 AM

I updated my fork; there was a change in coroutines affecting the filters implementation.
You can find it here https://hg01.codeplex.com/forks/marcoamendola/caliburnmicromarcoamendolafork in changeset 69d36da56124