Пример #1
0
 public TwitterListController(
     ITweetFactory tweetFactory,
     IUserFactory userFactory,
     ITwitterListQueryExecutor twitterListQueryExecutor,
     ITwitterListFactory twitterListsFactory,
     ITwitterListQueryParameterGenerator twitterListQueryParameterGenerator,
     ITwitterListIdentifierFactory twitterListIdentifierFactory)
 {
     _tweetFactory                       = tweetFactory;
     _userFactory                        = userFactory;
     _twitterListQueryExecutor           = twitterListQueryExecutor;
     _twitterListsFactory                = twitterListsFactory;
     _twitterListQueryParameterGenerator = twitterListQueryParameterGenerator;
     _twitterListIdentifierFactory       = twitterListIdentifierFactory;
 }
Пример #2
0
 public TwitterListController(
     ITweetFactory tweetFactory,
     IUserFactory userFactory,
     ITwitterListQueryExecutor twitterListQueryExecutor,
     ITwitterListFactory twitterListsFactory,
     ITwitterListQueryParameterGenerator twitterListQueryParameterGenerator,
     ITwitterListIdentifierFactory twitterListIdentifierFactory)
 {
     _tweetFactory = tweetFactory;
     _userFactory = userFactory;
     _twitterListQueryExecutor = twitterListQueryExecutor;
     _twitterListsFactory = twitterListsFactory;
     _twitterListQueryParameterGenerator = twitterListQueryParameterGenerator;
     _twitterListIdentifierFactory = twitterListIdentifierFactory;
 }
Пример #3
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();
        }
Пример #4
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();
        }
Пример #5
0
 private static void Initialize()
 {
     _twitterListFactory = TweetinviContainer.Resolve<ITwitterListFactory>();
     _twitterListController = TweetinviContainer.Resolve<ITwitterListController>();
 }
Пример #6
0
 private static void Initialize()
 {
     _twitterListFactory    = TweetinviContainer.Resolve <ITwitterListFactory>();
     _twitterListController = TweetinviContainer.Resolve <ITwitterListController>();
 }