public InstallUpdateService(ICheckUpdateService checkUpdateService, IAppFolderInfo appFolderInfo, IDiskProvider diskProvider, IHttpClient httpClient, IArchiveService archiveService, IProcessProvider processProvider, IVerifyUpdates updateVerifier, IConfigFileProvider configFileProvider, IRuntimeInfo runtimeInfo, IBackupService backupService, Logger logger) { if (configFileProvider == null) { throw new ArgumentNullException("configFileProvider"); } _checkUpdateService = checkUpdateService; _appFolderInfo = appFolderInfo; _diskProvider = diskProvider; _httpClient = httpClient; _archiveService = archiveService; _processProvider = processProvider; _updateVerifier = updateVerifier; _configFileProvider = configFileProvider; _runtimeInfo = runtimeInfo; _backupService = backupService; _logger = logger; }
public KnowledgeBaseController(IEmployeeService employeeService, IPositionService positionService, IProjectService projectService, IArchiveService archiveService) { _employeeService = employeeService; _positionService = positionService; _projectService = projectService; _archiveService = archiveService; }
public ArchiveController(IArchiveService archives, VulnerabilityDBContext db, MpcDBContext mpcConfigDB, MPCMissingPatchDbContext mpcPatchDB) { this.archives = archives; this.db = db; this.mpcConfigDB = mpcConfigDB; this.mpcPatchDB = mpcPatchDB; }
public DisbursementHistoryServiceTest() { _nachaFileManager = Substitute.For<INachaFileGenerationManager>(); _documentService = Substitute.For<IDocumentService>(); _archiveService = Substitute.For<IArchiveService>(); _target = new DisbursementHistoryService(_nachaFileManager, _documentService, _archiveService); }
public NodeViewModel( IFileSystemNodeOpeningBehavior fileSystemNodeOpeningBehavior, IOperationsService operationsService, IClipboardOperationsService clipboardOperationsService, IFilesOperationsMediator filesOperationsMediator, IFileSystemNodePropertiesBehavior fileSystemNodePropertiesBehavior, IDialogService dialogService, ITrashCanService trashCanService, IArchiveService archiveService, ISystemDialogService systemDialogService, IOpenWithApplicationService openWithApplicationService, IPathService pathService) : base( fileSystemNodeOpeningBehavior, operationsService, clipboardOperationsService, filesOperationsMediator, fileSystemNodePropertiesBehavior, dialogService, trashCanService, archiveService, systemDialogService, openWithApplicationService, pathService) { }
public CleanUpIntegrationDbStep(Lazy <IDbFactory> db, IIntegrationDatabaseConfiguration dbConfiguration, IConfigurationService configuration, IArchiveService archiver) { _db = db; _dbConfiguration = dbConfiguration; _configuration = configuration; _archiver = archiver; }
/// <summary> /// Gets the specified post archive for the specified filter. /// </summary> /// <param name="service">The archive service</param> /// <param name="archiveId">The archive page id</param> /// <param name="currentPage">The current page of the archive</param> /// <param name="categoryId">The optional category id</param> /// <param name="tagId">The optional tag id</param> /// <param name="year">The optional year</param> /// <param name="month">The optional month</param> /// <param name="pageSize">The optional page size</param> /// <typeparam name="T">The post model type</typeparam> /// <returns>The archive model</returns> public static PostArchive <T> GetById <T>(this IArchiveService service, Guid archiveId, int?currentPage = 1, Guid?categoryId = null, Guid?tagId = null, int?year = null, int?month = null, int?pageSize = null) where T : PostBase { return(service.GetByIdAsync <T>(archiveId, currentPage, categoryId, tagId, year, month, pageSize) .GetAwaiter() .GetResult()); }
/// <summary> /// creates a new <see cref="DatabaseWorkflowService"/> /// </summary> /// <param name="database">access to database</param> /// <param name="archiveservice">access to data archives</param> public DatabaseWorkflowService(IEntityManager database, IArchiveService archiveservice) { this.database = database; this.archiveservice = archiveservice; database.UpdateSchema <Workflow>(); database.UpdateSchema <WorkflowNode>(); database.UpdateSchema <WorkflowTransition>(); insertworkflow = database.Insert <Workflow>().Columns(w => w.Revision, w => w.Name, w => w.Language) .ReturnID() .Prepare(); updateworkflow = database.Update <Workflow>() .Set(w => w.Revision == w.Revision + 1, w => w.Name == DBParameter.String, w => w.Language == DBParameter <ScriptLanguage?> .Value) .Where(w => w.Id == DBParameter.Int64) .Prepare(); deletetransitions = database.Delete <WorkflowTransition>().Where(t => t.WorkflowId == DBParameter.Int64).Prepare(); deletenodes = database.Delete <WorkflowNode>().Where(n => n.WorkflowId == DBParameter.Int64).Prepare(); deleteworkflow = database.Delete <Workflow>().Where(w => w.Id == DBParameter.Int64).Prepare(); loadworkflowbyid = database.Load <Workflow>().Where(w => w.Id == DBParameter.Int64).Prepare(); loadworkflowbyname = database.Load <Workflow>().Where(w => w.Name == DBParameter.String).Prepare(); loadnodes = database.Load <WorkflowNode>(n => n.Id, n => n.Name, n => n.Group, n => n.Type, n => n.Parameters, n => n.Variable).Where(n => n.WorkflowId == DBParameter.Int64).Prepare(); loadtransitions = database.Load <WorkflowTransition>(t => t.OriginId, t => t.TargetId, t => t.Condition, t => t.Type, t => t.Log).Where(t => t.WorkflowId == DBParameter.Int64).Prepare(); insertnode = database.Insert <WorkflowNode>().Columns(n => n.Id, n => n.WorkflowId, n => n.Name, n => n.Type, n => n.Parameters, n => n.Group, n => n.Variable).Prepare(); inserttransition = database.Insert <WorkflowTransition>().Columns(t => t.WorkflowId, t => t.OriginId, t => t.TargetId, t => t.Condition, t => t.Type, t => t.Log).Prepare(); }
/// <summary> /// creates a new <see cref="WorkflowController"/> /// </summary> /// <param name="logger">access to logging</param> /// <param name="workflowservice">access to workflow data</param> /// <param name="exportservice">exports workflow data to structures</param> /// <param name="archiveservice">archived object data</param> public WorkflowController(ILogger <WorkflowController> logger, IWorkflowService workflowservice, IWorkflowExportService exportservice, IArchiveService archiveservice) { this.logger = logger; this.workflowservice = workflowservice; this.exportservice = exportservice; this.archiveservice = archiveservice; }
public FileSystemNodeViewModelFactory( IFileSystemNodeOpeningBehavior fileOpeningBehavior, IFileSystemNodeOpeningBehavior directoryOpeningBehavior, IFileSizeFormatter fileSizeFormatter, IPathService pathService, IOperationsService operationsService, IClipboardOperationsService clipboardOperationsService, IFilesOperationsMediator filesOperationsMediator, IFileSystemNodePropertiesBehavior filePropertiesBehavior, IFileSystemNodePropertiesBehavior directoryPropertiesBehavior, IDialogService dialogService, ITrashCanService trashCanService, IFileService fileService, IDirectoryService directoryService, IArchiveService archiveService, ISystemDialogService systemDialogService, IOpenWithApplicationService openWithApplicationService) { _fileOpeningBehavior = fileOpeningBehavior; _directoryOpeningBehavior = directoryOpeningBehavior; _fileSizeFormatter = fileSizeFormatter; _pathService = pathService; _operationsService = operationsService; _clipboardOperationsService = clipboardOperationsService; _filesOperationsMediator = filesOperationsMediator; _filePropertiesBehavior = filePropertiesBehavior; _directoryPropertiesBehavior = directoryPropertiesBehavior; _dialogService = dialogService; _trashCanService = trashCanService; _fileService = fileService; _directoryService = directoryService; _archiveService = archiveService; _systemDialogService = systemDialogService; _openWithApplicationService = openWithApplicationService; }
public ProfileController(IUnitOfWork unitOfWork, IAuthenticationManager authenticationManager, IApplicationUserManager userManager, IMessagingService messagingService, IApplicationRoleManager roleManager, IUserService userService, ICartableService cartableService, IArchiveService archiveService, IRequestService requestService, IDefinitionService definitionService, IUnivercityStructureService univercityStructureService, ILogService logService, IProfileService profileService) { _unitOfWork = unitOfWork; _authenticationManager = authenticationManager; _userManager = userManager; _messagingService = messagingService; _roleManager = roleManager; _userService = userService; _cartableService = cartableService; _archiveService = archiveService; _requestService = requestService; _logService = logService; _profileService = profileService; _definitionService = definitionService; _univercityStructureService = univercityStructureService; }
public CacheService(ILogger <CacheService> logger, IUnitOfWork unitOfWork, IArchiveService archiveService, IDirectoryService directoryService) { _logger = logger; _unitOfWork = unitOfWork; _archiveService = archiveService; _directoryService = directoryService; _numericComparer = new NumericComparer(); }
public ScannerService(IUnitOfWork unitOfWork, ILogger <ScannerService> logger, IArchiveService archiveService, IMetadataService metadataService) { _unitOfWork = unitOfWork; _logger = logger; _archiveService = archiveService; _metadataService = metadataService; }
public ServicesController() { _archiveService = new ArchiveService(); _transferService = new TransferService(); _uploadService = new UploadService(); _databaseService = new DatabaseService(); _emailService = new EmailService(); }
public FTPFileController(IFTPEntryRepo entryRepo, IFTPPathRepo pathRepo, IEntrySaverService treeLookerService, IIdProvider idProvider, ILoggerService logger, IArchiveService archiveService) { _entryRepo = entryRepo ?? throw new ArgumentNullException(nameof(entryRepo)); _pathRepo = pathRepo ?? throw new ArgumentNullException(nameof(pathRepo)); _treeSaverService = treeLookerService ?? throw new ArgumentNullException(nameof(treeLookerService)); _idProvider = idProvider ?? throw new ArgumentNullException(nameof(idProvider)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _archiveService = archiveService ?? throw new ArgumentNullException(nameof(archiveService)); }
public UsersEmail(IUnitOfWork uow, ICartableService cartableService, IArchiveService archiveService, IUserService userService, IRequestService requestService, IDefinitionService definitionService) { _uow = uow; _cartableService = cartableService; _archiveService = archiveService; _userService = userService; _requestService = requestService; _definitionService = definitionService; }
public ArchiveServiceTests() { AutomapperConfig.Configure(); ArchiveService = new ArchiveService(); Repository = MockRepository.GenerateStub<IRepository>(); CategoryRepository = MockRepository.GenerateStub<IRepository<Category>>(); QuestionRepository = MockRepository.GenerateStub<IRepository<Question>>(); SurveyRepository = MockRepository.GenerateStub<IRepository<Survey>>(); Repository.Expect(a => a.OfType<Category>()).Return(CategoryRepository); }
public EmployeeController(IEmployeeService employeeService, IPositionService positionService, ICourseService courseService, IProjectService projectService, IArchiveService archiveService) { _employeeService = employeeService; _positionService = positionService; _courseService = courseService; _projectService = projectService; _archiveService = archiveService; _userManager = new UserManager <Employee>(new UserStore <Employee>(new HrisDbContext())); }
public CorpusesService(IClarinService clarinService, ISearchCorpusService searchCorpusService, ICorpusesRepository corpusesRepository, IArchiveService archivesService, IMapper mapper, ICacheRepository cacheRepository) { _archivesService = archivesService; _corpusesRepository = corpusesRepository; _clarinService = clarinService; _searchCorpusService = searchCorpusService; _mapper = mapper; _cacheRepository = cacheRepository; }
public ConfigurationService(IArchiveService archive, IConfigurationRepository repository, ILogger logger) { this._repository = repository; this._logger = logger; this._archive = archive; JsonSerializerSettings jsonSerializerSetting = new JsonSerializerSettings(); jsonSerializerSetting.TypeNameHandling = TypeNameHandling.Auto; this._serializerSettings = jsonSerializerSetting; }
public void Delete(object obj) { IArchiveService service = GetService(obj.GetType()); Debug.Assert(service != null, "没有找到对应的 IArchiveService 服务"); if (service != null) { service.Delete(obj); } }
/// <summary> /// creates a new <see cref="DatabaseScriptService"/> /// </summary> /// <param name="database">access to database</param> /// <param name="archiveservice">access to object archive</param> public DatabaseScriptService(IEntityManager database, IArchiveService archiveservice) { this.database = database; this.archiveservice = archiveservice; database.UpdateSchema <Script>(); insertscript = database.Insert <Script>().Columns(s => s.Revision, s => s.Name, s => s.Code, s => s.Language).ReturnID().Prepare(); getscript = database.Load <Script>().Where(s => s.Id == DBParameter.Int64).Prepare(); getscriptbyname = database.Load <Script>().Where(s => s.Name == DBParameter.String).Prepare(); deletescript = database.Delete <Script>().Where(s => s.Id == DBParameter.Int64).Prepare(); }
public ConfigurationService(IArchiveService archive, IConfigurationRepository repository, ILogger logger) { _repository = repository; _logger = logger; _archive = archive; _serializerSettings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Auto }; }
public ConfirmShipmentService( IOrderRepository orderRepository, IArchiveService archiveService, IAuditLogAdapter log, IVendorRepository vendorRepo, INotificationHelper notificationHelper) { _orderRepo = orderRepository; _archiveService = archiveService; _log = log; _vendorRepo = vendorRepo; _notificationHelper = notificationHelper; }
public TrackContextMenuViewModel(IArchiveService archiveService, IMessenger messenger, IPlaylistsService playlistsService) { _archiveService = archiveService; _messenger = messenger; _playlistsService = playlistsService; ArchiveTrackCommand = new RelayCommand(OnArchiveTrack); EditTrackCommand = new RelayCommand(OnEditTrack); AddToPlaylistCommand = new RelayCommand <OrderedPlaylist>(OnAddToPlaylist); MenuItems = new ObservableCollection <MenuCommand>(); }
public InstallUpdateService(ICheckUpdateService checkUpdateService, IAppFolderInfo appFolderInfo, IDiskProvider diskProvider, IHttpProvider httpProvider, IArchiveService archiveService, IProcessProvider processProvider, Logger logger) { _checkUpdateService = checkUpdateService; _appFolderInfo = appFolderInfo; _diskProvider = diskProvider; _httpProvider = httpProvider; _archiveService = archiveService; _processProvider = processProvider; _logger = logger; }
public ValidationService(IEmailRepository emailRepository, ITelephoneNumberRepository telephoneNumberRepository, IPipelinePositionGenerator pipelinePositionGenerator, IArchiveService archiveService) { Check.If(emailRepository).IsNotNull(); Check.If(telephoneNumberRepository).IsNotNull(); Check.If(pipelinePositionGenerator).IsNotNull(); Check.If(archiveService).IsNotNull(); _emailRepository = emailRepository; _telephoneNumberRepository = telephoneNumberRepository; _pipelinePositionGenerator = pipelinePositionGenerator; _archiveService = archiveService; }
public Handler( CasterContext db, IMapper mapper, IAuthorizationService authorizationService, IIdentityResolver identityResolver, IArchiveService archiveService) { _db = db; _mapper = mapper; _authorizationService = authorizationService; _user = identityResolver.GetClaimsPrincipal(); _archiveService = archiveService; }
public void Register(IArchiveService archiveService) { Debug.Assert(archiveService != null, "archiveService 为 null"); if (archiveService == null) { return; } Debug.Assert(_services.Contains(archiveService) == false, "已经添加了 archiveService"); if (_services.Contains(archiveService)) { return; } _services.Add(archiveService); }
public bool CheckExistByCode(Type type, string code) { IArchiveService service = GetService(type); Debug.Assert(service != null, "没有找到对应的 IArchiveService 服务"); if (service != null) { return(service.CheckExistByCode(code)); } else { return(false); } }
public BackupService(IDatabase maindDb, IDiskProvider diskProvider, IAppFolderInfo appFolderInfo, IArchiveService archiveService, Logger logger) { _maindDb = maindDb; _diskProvider = diskProvider; _appFolderInfo = appFolderInfo; _archiveService = archiveService; _logger = logger; _backupTempFolder = Path.Combine(_appFolderInfo.TempFolder, "nzbdrone_backup"); }
public PickTicketService( IAuditLogAdapter log, IArchiveService archiveService, IOrderRepository orderRepo, IVendorRepository vendorRepo, IProductRepository productRepo, IOrderHelper orderHelper) { _log = log; _orderRepo = orderRepo; _productRepo = productRepo; _orderHelper = orderHelper; _vendorRepo = vendorRepo; _archiveService = archiveService; }
public static ArchiveCreated Archive(this IArchiveService service, string name, Action <BeginArchive> archive) { if (archive == null) { throw new ArgumentNullException("service"); } ArchiveCreated archiveCreated = null; using (BeginArchive beginArchive = service.Create(name, (ArchiveCreated x) => archiveCreated = x)) { archive(beginArchive); } return(archiveCreated); }
public FileUploadController(IDocumentService documentService, IAppraiserAccessManager appraiserAccessManager, IArchiveService archiveService, ICryptographicProvider cryptographicProvider, IOrderService orderService) { if (documentService == null) throw new ArgumentNullException("documentService"); if (appraiserAccessManager == null) throw new ArgumentNullException("appraiserAccessManager"); if (archiveService == null) throw new ArgumentNullException("archiveService"); if (cryptographicProvider == null) throw new ArgumentNullException("cryptographicProvider"); if (orderService == null) throw new ArgumentNullException("orderService"); _documentService = documentService; _appraiserAccessManager = appraiserAccessManager; _archiveService = archiveService; _orderService = orderService; _cryptographicProvider = cryptographicProvider; }
public BlogCommands( IContentManager contentManager, IMembershipService membershipService, IBlogService blogService, IMenuService menuService, ISiteService siteService, INavigationManager navigationManager, IArchiveService archiveService) { _contentManager = contentManager; _membershipService = membershipService; _blogService = blogService; _menuService = menuService; _siteService = siteService; _navigationManager = navigationManager; _archiveService = archiveService; }
public CustomerService(ICustomerRepository customerRepository, IReferenceGenerator referenceGenerator, IStatusGeneratorFactory statusGeneratorFactory, ICheckServiceClient checkServiceClient, IArchiveService archiveService) { Check.If(customerRepository).IsNotNull(); Check.If(referenceGenerator).IsNotNull(); Check.If(statusGeneratorFactory).IsNotNull(); Check.If(checkServiceClient).IsNotNull(); Check.If(archiveService).IsNotNull(); _customerRepository = customerRepository; _referenceGenerator = referenceGenerator; _statusGeneratorFactory = statusGeneratorFactory; _checkServiceClient = checkServiceClient; _archiveService = archiveService; }
public ApplicationService(IApplicationRepository applicationRepository, IReferenceGenerator referenceGenerator, IStatusGeneratorFactory statusGeneratorFactory, IPipelinePositionGenerator pipelinePositionGenerator, IPropertyServiceClient propertyServiceClient, IArchiveService archiveService) { Check.If(applicationRepository).IsNotNull(); Check.If(referenceGenerator).IsNotNull(); Check.If(statusGeneratorFactory).IsNotNull(); Check.If(pipelinePositionGenerator).IsNotNull(); Check.If(propertyServiceClient).IsNotNull(); Check.If(archiveService).IsNotNull(); _applicationRepository = applicationRepository; _referenceGenerator = referenceGenerator; _statusGeneratorFactory = statusGeneratorFactory; _pipelinePositionGenerator = pipelinePositionGenerator; _propertyServiceClient = propertyServiceClient; _archiveService = archiveService; }
public DisbursementHistoryService(INachaFileGenerationManager nachaFileManager, IDocumentService documentService, IArchiveService archiveService) { _nachaFileManager = ValidationUtil.CheckOnNullAndThrowIfNull(nachaFileManager); _documentService = ValidationUtil.CheckOnNullAndThrowIfNull(documentService); _archiveService = ValidationUtil.CheckOnNullAndThrowIfNull(archiveService); }
public QuestionController(IRepository<Question> questionRepository, IArchiveService archiveService) { _questionRepository = questionRepository; _archiveService = archiveService; }