/// <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");
 }
示例#2
0
 public ImageProcessor(ILogger <ImageProcessor> logger, IAssetFileOperations fileOps)
 {
     _logger  = logger;
     _fileOps = fileOps;
     VipsStartup();
 }
示例#3
0
 public ArchiveProcessor(ILogger <ArchiveProcessor> logger, IAssetFileOperations fileOps, IConfiguration configuration)
 {
     _logger        = logger;
     _fileOps       = fileOps;
     _configuration = configuration;
 }