CSLA 4.5+ Saving a BO doesn't mark the BO as busy?

CSLA 4.5+ Saving a BO doesn't mark the BO as busy?

Old forum URL: forums.lhotka.net/forums/t/11818.aspx


rfcdejong posted on Tuesday, February 05, 2013

In CSLA 4.5 the method BeginSave calls SaveAsync which doesn't mark the BO as Busy anymore.

While the BO is being saved async the UI thread doesn't block any access anymore.

I looked at the code and couldn't find any MarkBusy() beside the viewmodel which we don't use. We bind directly to the bo.

I cannot mark the BO as busy overriding the SaveAsync method since the base doesn't allow a busy object to be saved. In the OnSaved method the BO is marked Idle.


This feels like a new bug in csla 4.5

RockfordLhotka replied on Tuesday, February 05, 2013

Could be a bug. I haven't notice this behavior, but as I'm working on the data portal right now I'll see if I can repro the issue.

rfcdejong replied on Thursday, February 07, 2013

It seems that it will be fixed in CSLA 4.5.20, thanks. Just once small detail; it seems that MarkIdle is called twice now, one time in the finally and one time in the OnSaved.

RockfordLhotka replied on Thursday, February 07, 2013

Thanks for testing - I'll fix that.

Copyright (c) Marimer LLC