Ejemplo n.º 1
0
        public UserStream(
            IStreamResultGenerator streamResultGenerator,
            ITweetFactory tweetFactory,
            IMessageFactory messageFactory,
            IUserFactory userFactory,
            ITweetListFactory tweetListFactory,
            IJObjectStaticWrapper jObjectWrapper,
            IJsonObjectConverter jsonObjectConverter,
            IExceptionHandler exceptionHandler,
            ITwitterRequestGenerator twitterRequestGenerator,
            IStreamTrackManager <ITweet> streamTrackManager,
            ISynchronousInvoker synchronousInvoker,
            ITaskFactory taskFactory)
            : base(streamTrackManager, jsonObjectConverter, jObjectWrapper, streamResultGenerator, tweetFactory, twitterRequestGenerator, synchronousInvoker)
        {
            _messageFactory   = messageFactory;
            _userFactory      = userFactory;
            _tweetListFactory = tweetListFactory;
            _jObjectWrapper   = jObjectWrapper;
            _exceptionHandler = exceptionHandler;
            _taskFactory      = taskFactory;

            _events = new Dictionary <string, Action <JObject> >();

            InitializeEvents();
        }
Ejemplo n.º 2
0
        // Constructor
        public FilteredStream(
            IStreamTrackManager <ITweet> streamTrackManager,
            IJsonObjectConverter jsonObjectConverter,
            IJObjectStaticWrapper jObjectStaticWrapper,
            IStreamResultGenerator streamResultGenerator,
            ITweetFactory tweetFactory,
            ITwitterRequestGenerator twitterRequestGenerator,
            ISynchronousInvoker synchronousInvoker,
            ICustomRequestParameters customRequestParameters,
            ITwitterQueryFactory twitterQueryFactory,
            ISingleAggregateExceptionThrower singleAggregateExceptionThrower)

            : base(
                streamTrackManager,
                jsonObjectConverter,
                jObjectStaticWrapper,
                streamResultGenerator,
                tweetFactory,
                twitterRequestGenerator,
                synchronousInvoker,
                customRequestParameters,
                twitterQueryFactory,
                singleAggregateExceptionThrower)
        {
            _twitterQueryFactory             = twitterQueryFactory;
            _singleAggregateExceptionThrower = singleAggregateExceptionThrower;
            _followingUserIds = new Dictionary <long?, Action <ITweet> >();
            _locations        = new Dictionary <ILocation, Action <ITweet> >();
        }
Ejemplo n.º 3
0
 public SampleStream(
     IStreamResultGenerator streamResultGenerator,
     IJsonObjectConverter jsonObjectConverter,
     IJObjectStaticWrapper jObjectStaticWrapper,
     ITweetFactory tweetFactory,
     ITwitterRequestGenerator twitterRequestGenerator,
     ISynchronousInvoker synchronousInvoker)
     : base(streamResultGenerator, jsonObjectConverter, jObjectStaticWrapper, tweetFactory, twitterRequestGenerator)
 {
     _synchronousInvoker = synchronousInvoker;
 }
Ejemplo n.º 4
0
 public SampleStream(
     IStreamResultGenerator streamResultGenerator,
     IJsonObjectConverter jsonObjectConverter,
     IJObjectStaticWrapper jObjectStaticWrapper,
     ITweetFactory tweetFactory,
     ITwitterRequestGenerator twitterRequestGenerator,
     ISynchronousInvoker synchronousInvoker,
     ICustomRequestParameters customRequestParameters,
     ISingleAggregateExceptionThrower singleAggregateExceptionThrower,
     ITwitterQueryFactory twitterQueryFactory)
     : base(streamResultGenerator, jsonObjectConverter, jObjectStaticWrapper, tweetFactory, twitterRequestGenerator, customRequestParameters, twitterQueryFactory)
 {
     _synchronousInvoker = synchronousInvoker;
     _singleAggregateExceptionThrower = singleAggregateExceptionThrower;
 }
Ejemplo n.º 5
0
 public SampleStream(
     IStreamResultGenerator streamResultGenerator,
     IJsonObjectConverter jsonObjectConverter, 
     IJObjectStaticWrapper jObjectStaticWrapper, 
     ITweetFactory tweetFactory,
     ITwitterRequestGenerator twitterRequestGenerator,
     ISynchronousInvoker synchronousInvoker,
     ICustomRequestParameters customRequestParameters,
     ISingleAggregateExceptionThrower singleAggregateExceptionThrower,
     ITwitterQueryFactory twitterQueryFactory)
     : base(streamResultGenerator, jsonObjectConverter, jObjectStaticWrapper, tweetFactory, twitterRequestGenerator, customRequestParameters, twitterQueryFactory)
 {
     _synchronousInvoker = synchronousInvoker;
     _singleAggregateExceptionThrower = singleAggregateExceptionThrower;
 }
Ejemplo n.º 6
0
        public TrackedStream(
            IStreamTrackManager <ITweet> streamTrackManager,
            IJsonObjectConverter jsonObjectConverter,
            IJObjectStaticWrapper jObjectStaticWrapper,
            IStreamResultGenerator streamResultGenerator,
            ITweetFactory tweetFactory,
            ITwitterRequestGenerator twitterRequestGenerator,
            ISynchronousInvoker synchronousInvoker)

            : base(streamResultGenerator, jsonObjectConverter, jObjectStaticWrapper)
        {
            _streamTrackManager      = streamTrackManager;
            _jsonObjectConverter     = jsonObjectConverter;
            _tweetFactory            = tweetFactory;
            _twitterRequestGenerator = twitterRequestGenerator;
            _synchronousInvoker      = synchronousInvoker;
        }
Ejemplo n.º 7
0
        public TrackedStream(
            IStreamTrackManager <ITweet> streamTrackManager,
            IJsonObjectConverter jsonObjectConverter,
            IJObjectStaticWrapper jObjectStaticWrapper,
            IStreamResultGenerator streamResultGenerator,
            ITweetFactory tweetFactory,
            ISynchronousInvoker synchronousInvoker,
            ICustomRequestParameters customRequestParameters,
            ITwitterQueryFactory twitterQueryFactory,
            ISingleAggregateExceptionThrower singleAggregateExceptionThrower)

            : base(streamResultGenerator, jsonObjectConverter, jObjectStaticWrapper, customRequestParameters)
        {
            _streamTrackManager              = streamTrackManager;
            _jsonObjectConverter             = jsonObjectConverter;
            _tweetFactory                    = tweetFactory;
            _synchronousInvoker              = synchronousInvoker;
            _singleAggregateExceptionThrower = singleAggregateExceptionThrower;
            _twitterQueryFactory             = twitterQueryFactory;
        }
Ejemplo n.º 8
0
        public TrackedStream(
            IStreamTrackManager<ITweet> streamTrackManager,
            IJsonObjectConverter jsonObjectConverter,
            IJObjectStaticWrapper jObjectStaticWrapper,
            IStreamResultGenerator streamResultGenerator,
            ITweetFactory tweetFactory,
            ISynchronousInvoker synchronousInvoker,
            ICustomRequestParameters customRequestParameters,
            ITwitterQueryFactory twitterQueryFactory,
            ISingleAggregateExceptionThrower singleAggregateExceptionThrower)

            : base(streamResultGenerator, jsonObjectConverter, jObjectStaticWrapper, customRequestParameters)
        {
            _streamTrackManager = streamTrackManager;
            _jsonObjectConverter = jsonObjectConverter;
            _tweetFactory = tweetFactory;
            _synchronousInvoker = synchronousInvoker;
            _singleAggregateExceptionThrower = singleAggregateExceptionThrower;
            _twitterQueryFactory = twitterQueryFactory;
        }
Ejemplo n.º 9
0
        // Constructor
        public FilteredStream(
            IStreamTrackManager <ITweet> streamTrackManager,
            IJsonObjectConverter jsonObjectConverter,
            IJObjectStaticWrapper jObjectStaticWrapper,
            IStreamResultGenerator streamResultGenerator,
            ITweetFactory tweetFactory,
            ITwitterRequestGenerator twitterRequestGenerator,
            ISynchronousInvoker synchronousInvoker)

            : base(
                streamTrackManager,
                jsonObjectConverter,
                jObjectStaticWrapper,
                streamResultGenerator,
                tweetFactory,
                twitterRequestGenerator,
                synchronousInvoker)
        {
            _followingUserIds = new Dictionary <long?, Action <ITweet> >();
            _locations        = new Dictionary <ILocation, Action <ITweet> >();
        }
Ejemplo n.º 10
0
        public UserStream(
            IStreamResultGenerator streamResultGenerator,
            ITweetFactory tweetFactory,
            IMessageFactory messageFactory,
            IUserFactory userFactory,
            ITwitterListFactory twitterListFactory,
            IJObjectStaticWrapper jObjectWrapper,
            IJsonObjectConverter jsonObjectConverter,
            ITwitterRequestGenerator twitterRequestGenerator,
            IStreamTrackManager<ITweet> streamTrackManager,
            ISynchronousInvoker synchronousInvoker,
            ITaskFactory taskFactory,
            ICustomRequestParameters customRequestParameters,
            ITwitterQueryFactory twitterQueryFactory,
            ISingleAggregateExceptionThrower singleAggregateExceptionThrower)

            : base(
                streamTrackManager,
                jsonObjectConverter,
                jObjectWrapper,
                streamResultGenerator,
                tweetFactory,
                twitterRequestGenerator,
                synchronousInvoker,
                customRequestParameters,
                twitterQueryFactory,
                singleAggregateExceptionThrower)
        {
            _messageFactory = messageFactory;
            _userFactory = userFactory;
            _twitterListFactory = twitterListFactory;
            _jObjectWrapper = jObjectWrapper;
            _taskFactory = taskFactory;
            _twitterQueryFactory = twitterQueryFactory;
            _singleAggregateExceptionThrower = singleAggregateExceptionThrower;

            _events = new Dictionary<string, Action<JObject>>();

            InitializeEvents();
        }
Ejemplo n.º 11
0
        public UserStream(
            IStreamResultGenerator streamResultGenerator,
            ITweetFactory tweetFactory,
            IMessageFactory messageFactory,
            IUserFactory userFactory,
            ITwitterListFactory twitterListFactory,
            IJObjectStaticWrapper jObjectWrapper,
            IJsonObjectConverter jsonObjectConverter,
            ITwitterRequestGenerator twitterRequestGenerator,
            IStreamTrackManager <ITweet> streamTrackManager,
            ISynchronousInvoker synchronousInvoker,
            ITaskFactory taskFactory,
            ICustomRequestParameters customRequestParameters,
            ITwitterQueryFactory twitterQueryFactory,
            ISingleAggregateExceptionThrower singleAggregateExceptionThrower)

            : base(
                streamTrackManager,
                jsonObjectConverter,
                jObjectWrapper,
                streamResultGenerator,
                tweetFactory,
                twitterRequestGenerator,
                synchronousInvoker,
                customRequestParameters,
                twitterQueryFactory,
                singleAggregateExceptionThrower)
        {
            _messageFactory                  = messageFactory;
            _userFactory                     = userFactory;
            _twitterListFactory              = twitterListFactory;
            _jObjectWrapper                  = jObjectWrapper;
            _taskFactory                     = taskFactory;
            _twitterQueryFactory             = twitterQueryFactory;
            _singleAggregateExceptionThrower = singleAggregateExceptionThrower;

            _events = new Dictionary <string, Action <JObject> >();

            InitializeEvents();
        }