fleming7612 / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

discomanager clearcache needed #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. DiscoManager.BeginFindServiceWithFeature(URI.MUC, ...) 
2. DiscoManager.BeginGetItems(...) 

What is the expected output? What do you see instead?
the output is in some way chached and is always the same, although the real
data is changed
(i'm retreiving room list and if either i remove or create a new room the
result is always the same)

Is it possible to implement a clear chache function or add a parameter to
this function meaning "force discovery (ignore cache)"

thanks

Original issue reported on code.google.com by chiod...@gmail.com on 16 Apr 2008 at 6:37

GoogleCodeExporter commented 8 years ago

Original comment by hil...@gmail.com on 16 Apr 2008 at 5:37

GoogleCodeExporter commented 8 years ago

Original comment by hil...@gmail.com on 16 Apr 2008 at 5:38

GoogleCodeExporter commented 8 years ago
I realized that I was caching application-wide, rather than per-DiscoManager, 
so I
fixed that at the same time.  To clear the cache, call DiscoManager.Clear().  To
avoid the cache, use:

BeginGetFeatures(jid, node, handler, state, false)

Original comment by hil...@gmail.com on 17 Apr 2008 at 3:40