Apr 29, 2015 at 9:28 PM
Edited Apr 29, 2015 at 9:46 PM
First of all, thanks for your work on this library. It seems great and works perfectly for my purposes.
That said I have a question regarding adding new keywords to an existing stream which I couldn't figure out. I read a few other discussions regarding this point but didn't manage to get the answers working. Everything works for me until I need to change the
keywords being tracked.
If I do something like the following I would guess that the stream would start and send me tweets that match my initial phrase. After 30s, I would like to add on a new, higher volume keyword. This does not work however, the stream does restart but the new phrase
doesn't take effect. I also get the impression even the old one sends fewer hits than before the timer hits. What am I doing wrong? Should I be disposing of the stream and starting a completely new one instead?
Also, is the StartStreamMatchingAllConditions() supposed to be blocking? Sometimes when running it in the debugger it doesn't block and I can't figure out if it's the debugger messing with me or if it's an actual problem.
Thank you very much in advance!
filteredStream.AddTrack("a low volume phrase");
filteredStream.JsonObjectReceived += filteredStream_JsonObjectReceived;
var resetTimer = new System.Timers.Timer(30000);
resetTimer.Elapsed += (o, eventArgs) =>
//Add a high volume keyword