Problems with Streaming

Jun 28, 2011 at 8:33 PM

Hi Joe,

I am having issues with accessing the Streaming API. I am using your streaming demo code to try it out but for some reason I am getting no results and the callback is never executed.

            var streaming =
                (from strm in twitterCtx.Streaming
                 where strm.Type == StreamingType.Filter &&
                       strm.Track == "LINQ to Twitter"
                 select strm)
                .StreamingCallback(strm =>
                    {
                        Console.WriteLine(strm.Content + "\n");
 
                        if (count++ >= 2)
                        {
                            strm.CloseStream();
                        }
                    })
                .SingleOrDefault();
I am setting the StreamingUserName and StreamingUserPassword of the TwitterContext to my own Twitter credentials. 
If you have any suggestions, please let me know.
Thanks!!
Jun 28, 2011 at 9:59 PM

Nevermind....I think I got it working. Thanks anyway.