Exemplo n.º 1
0
 public PublishedPeriodicalController(PeriodicalService service, PublishingHouseService phService, BackupFileService backupFileService, IHostingEnvironment hostingEnvironment)
 {
     this.service            = service;
     this.phService          = phService;
     this.hostingEnvironment = hostingEnvironment;
     this.backupFileService  = backupFileService;
 }
Exemplo n.º 2
0
 public BrochureController(BrochureService service, PublishingHouseService phService, BackupFileService backupFileService, IHostingEnvironment hostingEnvironment)
 {
     this.service            = service;
     this.phService          = phService;
     this.hostingEnvironment = hostingEnvironment;
     this.backupFileService  = backupFileService;
 }
Exemplo n.º 3
0
 public BookController(BookService service, AuthorService authorService, BackupFileService backupFileService, IHostingEnvironment hostingEnvironment)
 {
     this.service            = service;
     this.hostingEnvironment = hostingEnvironment;
     this.authorService      = authorService;
     this.backupFileService  = backupFileService;
 }
Exemplo n.º 4
0
        /// <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);
        }
Exemplo n.º 5
0
        /// <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);
        }
Exemplo n.º 6
0
 public FileController(BackupFileService backupFileService, IConfiguration configuration)
 {
     this.configuration     = configuration;
     this.backupFileService = backupFileService;
 }
Exemplo n.º 7
0
 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;
 }