Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Trying to create a stream - autofac throws error

$
0
0
The requested service 'Tweetinvi.Core.Interfaces.Streaminvi.IFilteredStream' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
Caused by any stream attempt
           try
            {
                var us = Stream.CreateUserStream();

                us.MessageReceived += (s, a) =>
                {
                    Console.WriteLine("You received the message : {0}", a.Message.Text);
                };

                us.FollowedUser += userStream_FollowedUser;
                us.FollowedByUser += userStream_FollowedByUser;
                us.StopStream();
            }
            catch (Exception e1)
            {

            }

            try
            {
                var ts = Stream.CreateTweetStream();
                ts.TweetReceived += ts_TweetReceived;
            }
            catch (Exception e2)
            {
            }
            try
            {
                var fs = Stream.CreateFilteredStream();
                fs.AddFollow(dbAc.UserId);
                fs.MatchingTweetReceived += fs_MatchingTweetReceived;
            }
            catch (Exception e3)
            {
            }
            try
            {
                var ss = Stream.CreateSampleStream();
                ss.TweetReceived += ss_TweetReceived;
            }
            catch (Exception e4)
            {
            }
Is there some setup involved for using streams?

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>