示例#1
0
 public FilesController
 (
     IFileApplicationService fileApplicationService,
     IFileService fileService,
     IWebHostEnvironment environment
 )
 {
     _directory = Path.Combine(environment.ContentRootPath, "Files");
     _fileApplicationService = fileApplicationService;
     _fileService            = fileService;
 }
示例#2
0
 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;
        }