Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Wait for object to no longer be busy?

$
0
0

I feel like I'm missing something simple.  If you have a BO with Async business rules, how do you wait for the object to no longer be busy before carrying on with something else, such as asking the object to save itself?  I would have thought there'd be some method to await the non-busy state, but I can't find anything.  A simple

 

 

 

while(bo.IsBusy) { }

doesn't seem to work either (and will burn CPU as well).


Viewing all articles
Browse latest Browse all 764

Trending Articles