public ForumController(
     IForumCategoryService categoryService,
     IForumThreadService threadService)
 {
     this.categoryService = categoryService;
     this.threadService   = threadService;
 }
 public ForumReplyController(
     IForumThreadService threadService,
     IForumReplyService replyService,
     UserManager <ApplicationUser> userManager)
 {
     this.threadService = threadService;
     this.replyService  = replyService;
     this.userManager   = userManager;
 }
 public ForumReplyService(
     IDeletableEntityRepository <ForumReply> replyRepository,
     IForumThreadService threadService,
     UserManager <ApplicationUser> userManager)
 {
     this.replyRepository = replyRepository;
     this.threadService   = threadService;
     this.userManager     = userManager;
 }
Esempio n. 4
0
 public HomeController(
     IForumThreadService threadService,
     INewsService newsService,
     IVideosService videoService)
 {
     this.threadService = threadService;
     this.newsService   = newsService;
     this.videoService  = videoService;
 }
 public AdminController(
     INewsService newsService,
     IForumReplyService replyService,
     IForumThreadService threadService,
     IVideosService videosService)
 {
     this.newsService   = newsService;
     this.replyService  = replyService;
     this.threadService = threadService;
     this.videosService = videosService;
 }
        /// <summary>重新加载</summary>
        private void Reload()
        {
            if (this.restartCount > 0)
            {
                // 重新加载配置信息
                ForumConfigurationView.Instance.Reload();
            }

            // 创建对象构建器(Spring.NET)
            string springObjectFile = ForumConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(ForumConfiguration.ApplicationName, springObjectFile);

            // 创建数据服务对象
            this.m_ForumCategoryService = objectBuilder.GetObject <IForumCategoryService>(typeof(IForumCategoryService));
            this.m_ForumThreadService   = objectBuilder.GetObject <IForumThreadService>(typeof(IForumThreadService));
            this.m_ForumCommentService  = objectBuilder.GetObject <IForumCommentService>(typeof(IForumCommentService));
            this.m_ForumMemberService   = objectBuilder.GetObject <IForumMemberService>(typeof(IForumMemberService));
            this.m_ForumFollowService   = objectBuilder.GetObject <IForumFollowService>(typeof(IForumFollowService));
        }