How to cleanup and stop a stream?

Feb 3, 2014 at 10:53 PM
Thanks for the great work..

I just opened your solution and created simple app..

I am calling 3 methods - GetRateLimit, GetHomeTimeline, UserStreamWithTrackedTweetsExample...

All is working fine..

However I cant find - how do I stop the stream and then cleanup all the resources ? (before exiting the app) ..
Feb 3, 2014 at 11:47 PM

To stop a stream just call Stream.StopStream().
If your project is quite new, I would advise using Tweetinvi 0.9 (download from the SourceCode -> Development).

Version 0.8.3.x
var stream = new Stream(...);
Action<ITweet> tweetReceived = t =>

stream.StartStream(token, tweetReceived);
Version 0.9
var stream = Stream.CreateFilteredStream();
stream.MatchingTweetReceived += (sender, args) =>
Please let me know if this help.
Marked as answer by linvi on 2/4/2014 at 4:07 AM
Feb 4, 2014 at 11:45 AM
Thank you.