Example #1
0
 private void Init()
 {
     if (twitterMgr == null)
     {
         twitterMgr = new TwitterManager();
     }
 }
Example #2
0
 public void FactoryOverride <T>(T service)
 {
     if (typeof(T) == typeof(ITwitterManager))
     {
         this.twitterMgr = (ITwitterManager)service;
     }
 }
 public PeriodicTwitterStatusUpdater(
     IFactory <TimeSpan, Action, Task> periodicTaskFactory,
     IQueryCommandService <IUnitOfWork> unitOfWork,
     IPipelineManager pipelineManager,
     ITwitterManager twitterManager,
     ISettings settings
     )
 {
     _periodicTaskFactory = periodicTaskFactory;
     _unitOfWork          = unitOfWork;
     _pipelineManager     = pipelineManager;
     _twitterManager      = twitterManager;
     _settings            = settings;
 }
Example #4
0
 public CommandLogic(
     ITimeService timeService,
     IDownloadMapper downloadMapper,
     ILogger logger,
     ITwitterManager twitterManager,
     IProvider <IStreamStateService> streamStateServiceProvider,
     ISettings settings,
     IFactory <string> latestYoutubeFactory
     )
 {
     _timeService                = timeService;
     _downloadMapper             = downloadMapper;
     _logger                     = logger;
     _twitterManager             = twitterManager;
     _streamStateServiceProvider = streamStateServiceProvider;
     _settings                   = settings;
     _latestYoutubeFactory       = latestYoutubeFactory;
 }
Example #5
0
 /// <summary>
 /// Init managers of the app
 /// </summary>
 private void initManagers()
 {
     AppTwitterManager  = TwitterManager.Instance;
     AppSettingsManager = SettingsManager.Instance;
 }
 public static ITwitterManager GetTwitterManager()
 {
     return(_twitterManager ?? (_twitterManager = new TwitterManager()));
 }