public FileController(IHttpContextAccessor httpContextAccessor, ILogger <FileController> logger, IFileAndFolderDataProvider fileAndFolderDataProvider, IPermissionsService permissionsService, IFileService fileService, IFileServerService fileServerService, IOptionsSnapshot <ApplicationGateway> gatewayConfig) { _logger = logger; _fileAndFolderDataProvider = fileAndFolderDataProvider; _fileService = fileService; _permissionsService = permissionsService; _fileServerService = fileServerService; _httpContextAccessor = httpContextAccessor; _fqdn = gatewayConfig.Value.FQDN; }
public FolderController(ILogger <FolderController> logger, IFileAndFolderDataProvider fileAndFolderDataProvider, IFolderService folderService, IPermissionsService permissionsService, IEtagService etagService, IHtmlSanitizer htmlSanitizer) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _fileAndFolderDataProvider = fileAndFolderDataProvider ?? throw new ArgumentNullException(nameof(fileAndFolderDataProvider)); _folderService = folderService ?? throw new ArgumentNullException(nameof(folderService));; _permissionsService = permissionsService ?? throw new ArgumentNullException(nameof(permissionsService)); _etagService = etagService ?? throw new ArgumentNullException(nameof(etagService)); _htmlSanitizer = htmlSanitizer ?? throw new ArgumentNullException(nameof(htmlSanitizer)); }