public FilesController ( IFileApplicationService fileApplicationService, IFileService fileService, IWebHostEnvironment environment ) { _directory = Path.Combine(environment.ContentRootPath, "Files"); _fileApplicationService = fileApplicationService; _fileService = fileService; }
public FilesController ( IHostingEnvironment environment, IFileApplicationService fileApplicationService, IFileService fileService ) { Directory = Path.Combine(environment.ContentRootPath, "Files"); FileApplicationService = fileApplicationService; FileService = fileService; }
public FilesController ( IFileApplicationService fileApplicationService, IFileService fileService, IWebHostEnvironment environment ) { if (environment is null) { throw new ArgumentNullException(nameof(environment)); } _directory = Path.Combine(environment.ContentRootPath, "Files"); _fileApplicationService = fileApplicationService; _fileService = fileService; }