Print Page | Close Window

DiscoverVerifiersFromConfig...

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1812
Printed Date: 21-Apr-2026 at 3:52pm


Topic: DiscoverVerifiersFromConfig...
Posted By: as123
Subject: DiscoverVerifiersFromConfig...
Date Posted: 14-May-2010 at 10:44am
                  Is DiscoverVerifiersFromConfig(string FileName) method, with a string parameter to accept xml config file name for Verifiers, no longer supported? What is the equivalent method in DevForce 2010 SL version?
 

                  In the documentation it is mentioned that "The engine automatically discovers rules in the code and can acquire rules defined externally in configuration XML, a database, or some other store of rules."  How to define rules in a database and acquire them (using DF 2010 SL version)?

 

Thanks



Replies:
Posted By: ting
Date Posted: 14-May-2010 at 10:04pm
We generally recommend that you define your verifiers in code and have them loaded by creating a class that implements the IVerifierProvider interface (which has one method called GetVerifiers).
 
If you still want to load them from xml, you can put them in the app.config/web.config and DiscoverVerifiersFromConfig() will load them from there.  There also used to be a signature to load verifiers from a stream, which could have been sourced from xml in an database.  If you guys still really want these features, we can bring it back, but we found that almost nobody was using it.
 



Print Page | Close Window