public PublishedPeriodicalController(PeriodicalService service, PublishingHouseService phService, BackupFileService backupFileService, IHostingEnvironment hostingEnvironment) { this.service = service; this.phService = phService; this.hostingEnvironment = hostingEnvironment; this.backupFileService = backupFileService; }
public BrochureController(BrochureService service, PublishingHouseService phService, BackupFileService backupFileService, IHostingEnvironment hostingEnvironment) { this.service = service; this.phService = phService; this.hostingEnvironment = hostingEnvironment; this.backupFileService = backupFileService; }
public BookController(BookService service, AuthorService authorService, BackupFileService backupFileService, IHostingEnvironment hostingEnvironment) { this.service = service; this.hostingEnvironment = hostingEnvironment; this.authorService = authorService; this.backupFileService = backupFileService; }
/// <summary> /// Runs the app. /// </summary> /// <param name="args">Program arguments</param> public void Run(CommandLineArgs args) { var backupFileService = new BackupFileService(); backupFileService.ProgressEvent += BackupFileServiceProgress; var backup = backupFileService.Merge(args.BackupFiles); string outputFileName = args.OutputFilePath ?? $"{backup.Manifest.Name}.jwlibrary"; backupFileService.WriteNewDatabase(backup, outputFileName, args.BackupFiles.First()); var logMessage = $"{args.BackupFiles.Length} backup files merged to {outputFileName}"; Log.Logger.Information(logMessage); OnProgressEvent(logMessage); }
/// <summary> /// Runs the app. /// </summary> /// <param name="args">Program arguments</param> public void Run(string[] args) { var files = GetInputFiles(args); IBackupFileService backupFileService = new BackupFileService(); backupFileService.ProgressEvent += BackupFileServiceProgress; var backup = backupFileService.Merge(files); string outputFileName = $"{backup.Manifest.Name}.jwlibrary"; backupFileService.WriteNewDatabase(backup, outputFileName, files.First()); var logMessage = $"{files.Count} backup files merged to {outputFileName}"; Log.Logger.Information(logMessage); OnProgressEvent(logMessage); }
public FileController(BackupFileService backupFileService, IConfiguration configuration) { this.configuration = configuration; this.backupFileService = backupFileService; }
public AuthorController(AuthorService service, BackupFileService backupFileService, IHostingEnvironment hostingEnvironment) { this.service = service; this.hostingEnvironment = hostingEnvironment; this.backupFileService = backupFileService; }
public PublishingHouseController(PublishingHouseService service, BackupFileService backupFileService, IHostingEnvironment hostingEnvironment) { this.service = service; this.hostingEnvironment = hostingEnvironment; this.backupFileService = backupFileService; }