protected override void EndProcessing() { switch (ParameterSetName) { case "FromPath": WriteObjects(ApplicationBuilder.ReadFromFiles(FilesFromCachedPaths(), p => WriteProgress(new ProgressRecord(0, "Importing application objects", p)))); break; case "FromDatabase": WriteObjects(ApplicationExporter.Export(DevClientPath ?? DefaultDevClientPath, ServerName, Database, Filter)); break; } }
protected override void EndProcessing() { var progress = new ProgressRecord(0, "Importing application objects", "Initializing").WithRecordType(ProgressRecordType.Processing); switch (ParameterSetName) { case "FromPath": WriteObjects(ApplicationBuilder.ReadFromFiles(FilesFromCachedPaths(), p => { WriteProgress(progress.WithStatusDescription(p)); })); WriteProgress(progress.WithRecordType(ProgressRecordType.Completed)); break; case "FromDatabase": WriteObjects(ApplicationExporter.Export(DevClientPath ?? DefaultDevClientPath, ServerName, Database, Filter)); break; } }