public SongGroupSplitter(RecordedSongGroup group, Logger logger, bool autostart = false) { this.Group = group; this._logger = logger; this._asyncProcessHelper = AsyncProcessHelper.Create <RecordedSong>(SplitGroup, _logger, "split song group into songs"); if (autostart) { SplitGroupAsync(); } }
public SongBatchConverter(IEnumerable <RecordedSong> songs, string outputFolder, ISongEncoder songEncoder, Logger logger, bool autostart = false) { this.Songs = songs; this.OutputFolder = outputFolder; this.SongEncoder = songEncoder; this._logger = logger; this._asyncProcessHelper = AsyncProcessHelper.Create <ConvertedSong>(ConvertSongs, logger, "convert songs"); if (autostart) { ConvertSongsAsync(); } }
/// <summary> /// Our constructor, allows you to pass in a single base path that is comma delimited. /// </summary> /// <param name="projectElement">the project we want to compile</param> /// <param name="settings">the settings we use to compile</param> public DependencyBuilder(IPlovrProject projectElement, IPlovrSettings settings) { this.Project = projectElement; this.Settings = settings; // this.BasePaths = basePath.IndexOf(',') > 0 ? basePath.Split(',').ToList() : new List<string> { basePath }; this.Provide = new Dictionary<string, string>(); this.Require = new Dictionary<string, List<string>>(); // we need to read output asynchronously. so we use a helper class ProcessHelper = new AsyncProcessHelper(); // build out the dependency tree. this.BuildDepedencyTree(); }