ValidationComplete event not raised

ValidationComplete event not raised

Old forum URL:

dro posted on Tuesday, May 29, 2012

Hi, I'm trying to check the rules on my BO and do something when the validation is complete. 

On the BO I have a Required rule on a property and an async ObjectRule on the BO itself. Since one of the rules is async, I have to register on the BO.ValidationComplete event in my ViewModel so I can do something when it's done. 

And of course, in the continuation callback of my async rule I call context.Complete(). 

But the event is never raised. Is there something I'm missing, or have I misunderstood the purpose of this event? 

dro replied on Tuesday, May 29, 2012

Nevermind, I found the problem: I was cloning the object AFTER registering the event! 

Thanks anyways!

Copyright (c) Marimer LLC