/// <summary>
        /// 默认构造函数
        /// </summary>
        /// <param name="configuration"></param>
        /// <param name="fileAttachmentService"></param>
        public FileAttachmentController(IConfiguration configuration, IFileAttachmentService fileAttachmentService)
        {
            var configuration1 = configuration;

            _endPoint              = configuration1.GetSection("endpoint").Value;
            _bucketName            = configuration1.GetSection("bucketName").Value;
            _fileAttachmentService = fileAttachmentService;
        }
#pragma warning disable CS1591 // 缺少对公共可见类型或成员“DetailsController.DetailsController(IFileAttachmentService, IArticleService, ITagService, ICommentService, IUserService, ArticleMapper, CommentMapper, EmailHelper)”的 XML 注释
        public DetailsController(IFileAttachmentService fileAttachmentService, IArticleService articleService, ITagService tagService, ICommentService commentService, IUserService userService, ArticleMapper articleMapper, CommentMapper commentMapper, EmailHelper emailHelper)
#pragma warning restore CS1591 // 缺少对公共可见类型或成员“DetailsController.DetailsController(IFileAttachmentService, IArticleService, ITagService, ICommentService, IUserService, ArticleMapper, CommentMapper, EmailHelper)”的 XML 注释
        {
            this.fileAttachmentService = fileAttachmentService;
            this.articleService        = articleService;
            this.tagService            = tagService;
            this.commentService        = commentService;
            this.userService           = userService;
            this.articleMapper         = articleMapper;
            this.commentMapper         = commentMapper;
            this.emailHelper           = emailHelper;
        }
示例#3
0
 public FilesController(IFileAttachmentService fileAttachmentService)
 {
     _fileAttachmentService = fileAttachmentService;
 }
 public FileAttachmentController(IFileAttachmentService fileAttachmentService, IWebHostEnvironment environment)
 {
     _fileAttachmentService = fileAttachmentService;
     _environment           = environment;
 }
 public ArticleMapper(IMapper mapper, IArticleTagService tagService, IFileAttachmentService fileAttachmentService)
 {
     _mapper      = mapper;
     _service     = tagService;
     _fileService = fileAttachmentService;
 }