public void InstallSources(string[] interchangeCode, IInterchangeErrorSink parseErrorSink, IInstallErrorSink installErrorSink) { this.CompleteInstall(this.ReadSources(interchangeCode, parseErrorSink), installErrorSink); }
public void InstallFiles(string[] paths, IInterchangeErrorSink parseErrorSink, IInstallErrorSink installErrorSink) { this.CompleteInstall(this.ReadFiles(paths, parseErrorSink), installErrorSink); }
public void InstallSource(string interchangeCode, IInterchangeErrorSink parseErrorSink, IInstallErrorSink installErrorSink) { this.InstallSources(new string[] { interchangeCode }, parseErrorSink, installErrorSink); }
public void InstallFile(string path, IInterchangeErrorSink parseErrorSink, IInstallErrorSink installErrorSink) { this.InstallFiles(new string[] { path }, parseErrorSink, installErrorSink); }
public InterchangeInstallerContext ReadSources(string[] interchangeCode, IInterchangeErrorSink errorSink) { if (interchangeCode == null) throw new ArgumentNullException("interchangeCode"); InterchangeInstallerContext installer = this.CreateInstallerContext(); foreach (string code in interchangeCode) { InterchangeFormatProcessor processor = new InterchangeFormatProcessor(new StringReader(code), installer, this.VersionServicesMap); processor.ErrorSink = errorSink; processor.ProcessInterchangeFile(); } return installer; }
public InterchangeInstallerContext ReadSource(string interchangeCode, IInterchangeErrorSink errorSink) { return this.ReadSources(new string[] { interchangeCode }, errorSink); }
public InterchangeInstallerContext ReadFiles(string[] paths, IInterchangeErrorSink errorSink) { if (paths == null) throw new ArgumentNullException("paths"); InterchangeInstallerContext installer = this.CreateInstallerContext(); foreach (string path in paths) { // Issue - expects UTF-8 encoding using (StreamReader sourceFileReader = File.OpenText(path)) { InterchangeFormatProcessor processor = new InterchangeFormatProcessor(sourceFileReader, installer, this.VersionServicesMap); processor.ErrorSink = errorSink; processor.ProcessInterchangeFile(); } } return installer; }
public InterchangeInstallerContext ReadFile(string path, IInterchangeErrorSink errorSink) { return this.ReadFiles(new string[] { path }, errorSink); }