Exemple #1
0
 public LibScan(ILog logService, IUserSettingService userSettingService, ILogInstanceManager logInstanceManager)
 {
     this.log = logService;
     this.userSettingService = userSettingService;
     this.logInstanceManager = logInstanceManager;
     this.IsScanning         = false;
 }
Exemple #2
0
        public PrePostActionService(IQueueService queueProcessor, IUserSettingService userSettingService, IWindowManager windowManager, IScan scanService, ILog logService, INotificationService notificationService)
        {
            this.log = logService;
            this.notificationService = notificationService;
            this.userSettingService  = userSettingService;
            this.windowManager       = windowManager;
            this.scanService         = scanService;

            queueProcessor.QueueCompleted       += this.QueueProcessorQueueCompleted;
            queueProcessor.QueuePaused          += this.QueueProcessor_QueuePaused;
            queueProcessor.EncodeCompleted      += this.EncodeService_EncodeCompleted;
            queueProcessor.JobProcessingStarted += this.EncodeService_EncodeStarted;
        }
Exemple #3
0
        public QueueService(IUserSettingService userSettingService, ILog logService, IErrorService errorService, ILogInstanceManager logInstanceManager, IHbFunctionsProvider hbFunctionsProvider, IPortService portService)
        {
            this.userSettingService  = userSettingService;
            this.logService          = logService;
            this.errorService        = errorService;
            this.logInstanceManager  = logInstanceManager;
            this.hbFunctionsProvider = hbFunctionsProvider;
            this.portService         = portService;

            // If this is the first instance, just use the main queue file, otherwise add the instance id to the filename.
            this.queueFile = string.Format("{0}{1}.json", QueueRecoveryHelper.QueueFileName, GeneralUtilities.ProcessId);

            this.allowedInstances        = this.userSettingService.GetUserSetting <int>(UserSettingConstants.SimultaneousEncodes);
            this.processIsolationEnabled = this.userSettingService.GetUserSetting <bool>(UserSettingConstants.ProcessIsolationEnabled);
        }
Exemple #4
0
 public LibEncode(IHbFunctionsProvider hbFunctionsProvider, ILog logService) : base(logService)
 {
     this.log = logService;
     this.hbFunctionsProvider = hbFunctionsProvider;
 }
Exemple #5
0
 public LibScan(ILog logService, IUserSettingService userSettingService)
 {
     this.log = logService;
     this.userSettingService = userSettingService;
     this.IsScanning         = false;
 }
Exemple #6
0
 public LibEncode(IHbFunctionsProvider hbFunctionsProvider, ILog logService, IUserSettingService userSettingService) : base(logService, userSettingService)
 {
     this.log = logService;
     this.userSettingService  = userSettingService;
     this.hbFunctionsProvider = hbFunctionsProvider;
 }
Exemple #7
0
 public LibScan(ILog logService)
 {
     this.log        = logService;
     this.IsScanning = false;
 }