CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

ValidationComplete event not raised

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 1 Follower

Not Ranked
3 Posts
Maxime Gaudreault Proulx posted on Tue, May 29 2012 9:25 AM | Locked

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? 

All Replies

Not Ranked
3 Posts

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

Thanks anyways!

Page 1 of 1 (2 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems