In the following documentation there's some information to create FactRetriever
s. http://msdn.microsoft.com/en-us/library/aa560118.aspx
But it didn't mention how often will they execute.
Question 1: What is the mechanism to determine the interval of executing a FactRetriever
?
Question 2: Is it possible to subscribe the execution of a FactRetriever
to an event? For example to a Database Trigger
or on Creation of a file in a specified folder
?
No, not explicitly.
That article does state that UpdateFacts, the only method defined in IFactRetriever, will be called every time the Policy is executed.
So, to answer you specific questions:
To note, since it's not clear in the article, factsHandleIn is a reference to the collection of facts you originally used with engine.Assert(). This is usually an object[].
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.