private void Init() { if (twitterMgr == null) { twitterMgr = new TwitterManager(); } }
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; }
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; }
/// <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())); }