public RemoteFileController(AttachService attachService , TokenSerivce tokenSerivce , NoteFileService noteFileService , UserService userService , ConfigFileService configFileService , IHttpContextAccessor accessor , AccessService accessService , ConfigService configService , TagService tagService , NoteService noteService , NotebookService notebookService , IWebHostEnvironment webHostEnvironment , ISevenZipCompressor sevenZipCompressor , BlogService blogService ) : base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor) { this.accessService = accessService; this.blogService = blogService; this.configService = configService; this.tagService = tagService; this.notebookService = notebookService; this.noteService = noteService; this.HostEnvironment = webHostEnvironment; this.SevenZipCompressor = sevenZipCompressor; if (RuntimeEnvironment.IsWindows) { PathRoot = @"C:\"; } }
/// <summary> /// 资源管理器 /// </summary> /// <param name="hostingEnvironment"></param> /// <param name="sevenZipCompressor"></param> public FileController(IHostingEnvironment hostingEnvironment, ISevenZipCompressor sevenZipCompressor) { _hostingEnvironment = hostingEnvironment; _sevenZipCompressor = sevenZipCompressor; }