AnsweredAssumed Answered

AF Event Frame Static Attributes Cached

Question asked by Lonnie Bowling Champion on Nov 29, 2018
Latest reply on Mar 14, 2019 by fmocke

Hi Everyone,

 

I'm having an issue with static attributes for an event frame not getting the most recent values. Here is what I am doing:

 

This is the test code:

 

            List < AFSearchToken > tokenList = new List<AFSearchToken>();
            var name = "T001 - 2018-05-23 21:20:19.000";
            tokenList.Add(new AFSearchToken(AFSearchFilter.Name, AFSearchOperator.Equal, name));
            var search = new AFEventFrameSearch(afDb, "optional name", tokenList);
            var data = search.FindEventFrames(pageSize: 1, startIndex: 0, fullLoad: true);
            foreach (var e in data)
            {
                Console.WriteLine($"{e.Name}");


                foreach (var attribute in e.Attributes)
                {
                    var value = attribute.GetValue();
                        Console.WriteLine($"{attribute.Name} - {value.ToString()}");
                }
            }

 

I repeat this query (without closing my connection) and get back the same values, even after I make a change to an attribute using PSE.  If I restart the application I get the new values, if I do a afDb.Refresh(), I get the new values. Is this the intended behavior?

 

Any help would be greatly appreciated!

 

Lonnie

Outcomes