public PhotoService( IClusterService clusterService, IPhotoProcessingService photoProcessingService, IFileService fileService, IApplicationLogger appLogger, IPhotoRepository photoRepository, IHashTagRepository hashTagRepository, IPredictionClassRepository predictionClassRepository, IUnitOfWork unitOfWork, IConfiguration configuration) { _photoRepository = photoRepository; _hashTagRepository = hashTagRepository; _predictionClassRepository = predictionClassRepository; _unitOfWork = unitOfWork; _photoProcessingService = photoProcessingService; _fileService = fileService; _clusterService = clusterService; _appLogger = appLogger; _taskFactory = new TaskFactory(); _photosAddress = configuration["appStorage:uploadedImages"]; _hashTagThreshold = double.Parse(configuration["app:hashTagThreshold"]); _maxDefaultHashTags = int.Parse(configuration["app:maxDefaultHashTags"]); }
public SamplesService( IPhotoProcessingService photoProcessingService, IPredictionClassRepository predictionClassRepository, ISamplesRepository samplePhotoRepository, IConfiguration configuration) { _photoProcessingService = photoProcessingService; _predictionClassRepository = predictionClassRepository; _samplePhotoRepository = samplePhotoRepository; _photosLocation = configuration["appStorage:samples:photosLocation"]; _photosTokensLocation = configuration["appStorage:samples:photosTokensLocation"]; _testPhotosFileLocation = configuration["appStorage:samples:testPhotosFileLocation"]; _trainPhotosFileLocation = configuration["appStorage:samples:trainPhotosFileLocation"]; _predictionClassesLocation = configuration["appStorage:samples:predictionClassesFileLocation"]; _testPhotosDirectory = configuration["appStorage:samples:testPhotosDirectory"]; }