コード例 #1
0
        //方式2

        public VideoController(IVideoService videoService, IReplyService replyService,
                               IImageInfoService imageInfoService, IBelongService belongService, IVideoClassService videoClassService)
        {
            _videoService      = videoService;
            _imageService      = imageInfoService;
            _belongService     = belongService;
            _videoClassService = videoClassService;
        }
コード例 #2
0
        //方式2

        public VideoClassController(IVideoClassService videoClassService,
                                    IImageInfoService imageInfoService)
        {
            _videoClassService = videoClassService;
            _imageInfoService  = imageInfoService;
        }