/// <summary> /// Create a new API controller for OVE Asset Models using Dependency Injection /// </summary> /// <param name="context">Database Context</param> /// <param name="logger">logger</param> /// <param name="fileOperations">something that understands what to do with files</param> /// <param name="serviceRepository">service repository</param> public OVEAssetModelController(AssetModelContext context, ILogger <OVEAssetModelController> logger, IAssetFileOperations fileOperations, ServiceRepository serviceRepository) { _context = context; _logger = logger; _fileOperations = fileOperations; _serviceRepository = serviceRepository; _logger.LogInformation("started Asset Controller Started"); }
public ImageProcessor(ILogger <ImageProcessor> logger, IAssetFileOperations fileOps) { _logger = logger; _fileOps = fileOps; VipsStartup(); }
public ArchiveProcessor(ILogger <ArchiveProcessor> logger, IAssetFileOperations fileOps, IConfiguration configuration) { _logger = logger; _fileOps = fileOps; _configuration = configuration; }