public DocumentsService(IEuCasesContextFactory factory, IPathsProvider pathsProvider)
 {
     this.dbHelper = new DocumentsServiceDbHelper(factory, pathsProvider);
     AkomaNtosoPreProcessor.ReThrowExceptions    = true;
     AkomaNtosoPreProcessor.RemoveHiddenElements = true;
     AkomaNtosoPreProcessor.ImagePath            = "static_file";
     AkomaNtosoPreProcessor.IsSmeData            = true;
     this.pathsProvider = pathsProvider;
 }
Пример #2
0
        public Tools()
        {
            var cs = @"Server=********;Database=*********;User Id=*********;Password=**********; Timeout=300";

            this.factory       = new EucasesContextFactory(new EuCasesContextFactorySettings(cs));
            this.pathsProvider = new PathsProvider()
            {
                BasePath = AppDomain.CurrentDomain.BaseDirectory
            };
        }
Пример #3
0
 public ProblemPluginFacadeProvider(
     IPathsProvider pathsProvider,
     IAssemblyLoader assemblyLoader,
     IProblemPluginFacadeFactory problemPluginFacadeFactory
     )
 {
     _pathsProvider              = pathsProvider;
     _assemblyLoader             = assemblyLoader;
     _problemPluginFacadeFactory = problemPluginFacadeFactory;
 }
Пример #4
0
 public SubtaskOperationsController(
     IResourceService <DistributedNode, Guid> distributedNodeResourceService,
     IResourceService <SubtaskInProgress> subtaskInProgressResourceService,
     DistributedComputingDbContext dbContext,
     IGetNextSubtaskToComputeService getNextSubtaskToComputeService,
     IPathsProvider pathsProvider
     )
 {
     _distributedNodeResourceService   = distributedNodeResourceService;
     _subtaskInProgressResourceService = subtaskInProgressResourceService;
     _dbContext = dbContext;
     _getNextSubtaskToComputeService = getNextSubtaskToComputeService;
     _pathsProvider = pathsProvider;
 }
Пример #5
0
        public DistributedTaskDefinitionsController(
            IJsonApiContext jsonApiContext,
            IResourceService <DistributedTaskDefinition> taskDefinitionResourceService,
            ILoggerFactory loggerFactory,
            IPathsProvider pathsProvider,
            IProblemPluginFacadeProvider problemPluginFacadeProvider,
            IFileStorage fileStorage,
            IPackager packager,
            IJsonApiResponseFactory jsonApiResponseFactory
            ) : base(jsonApiContext, taskDefinitionResourceService, loggerFactory)
        {
            _taskDefinitionResourceService = taskDefinitionResourceService;
            _pathsProvider = pathsProvider;
            _problemPluginFacadeProvider = problemPluginFacadeProvider;
            _fileStorage            = fileStorage;
            _packager               = packager;
            _jsonApiResponseFactory = jsonApiResponseFactory;

            _logger = loggerFactory.CreateLogger <DistributedTaskDefinitionsController>();
        }
 public DocumentsServiceDbHelper(IEuCasesContextFactory factory, IPathsProvider pathsProvider)
 {
     this.factory       = factory;
     this.pathsProvider = pathsProvider;
 }
Пример #7
0
 public ValuesService(IPathsProvider pathsProvider)
 {
     this.basePath = pathsProvider.PdfPath;
 }
Пример #8
0
 public EmailFileService(IPathsProvider paths)
 {
     _paths = paths;
 }
Пример #9
0
 public SortService(IEuCasesContextFactory factory, IPathsProvider pathsProvider)
 {
     this.factory       = factory;
     this.pathsProvider = pathsProvider;
     this.FillSortGroups();
 }