예제 #1
0
        public AutomationUploader(IYoutubeUploader uploader, IYoutubeJobContainer archiveContainer, IPlaylistServiceConnectionContainer pscContainer)
        {
            LOGGER.Debug($"Creating new instance of AutomationUploader");

            Uploader     = uploader;
            archive      = archiveContainer;
            PscContainer = pscContainer;
        }
예제 #2
0
        public AutomationUploader(IYoutubeUploader uploader, IYoutubeJobContainer archiveContainer, IPlaylistServiceConnectionContainer pscContainer, IYoutubeAccount account, IEnumerable <IObservationConfiguration> configurationsToAdd)
            : this(uploader, archiveContainer, pscContainer)
        {
            LOGGER.Debug($"Creating new instance of AutomationUploader with account with title {account?.Title ?? null}");
            Account = account;

            foreach (var config in configurationsToAdd)
            {
                LOGGER.Debug($"Adding configuration for template '{config.Template.Name}' and path '{config.PathInfo.Fullname}'");
                Configuration.Add(config);
            }
        }