コード例 #1
0
        public ForumPartHandler(IRepository<ForumPartRecord> repository, IForumPathConstraint forumPathConstraint)
        {
            _forumPathConstraint = forumPathConstraint;
            Filters.Add(StorageFilter.For(repository));

            OnGetDisplayShape<ForumPart>((context, forum) => {
                context.Shape.PostCount = forum.PostCount;
            });

            OnPublished<ForumPart>((context, forum) => _forumPathConstraint.AddPath(forum.As<IAliasAspect>().Path));
            OnUnpublished<ForumPart>((context, forum) => _forumPathConstraint.RemovePath(forum.As<IAliasAspect>().Path));
        }
コード例 #2
0
        public ForumController(IOrchardServices orchardServices, 
            IForumService forumService,
            IForumPathConstraint forumPathConstraint,
            IThreadService threadService,
            ISiteService siteService,
            IShapeFactory shapeFactory,
            IFeedManager feedManager)
        {
            _orchardServices = orchardServices;
            _forumService = forumService;
            _forumPathConstraint = forumPathConstraint;
            _threadService = threadService;
            _siteService = siteService;
            _feedManager = feedManager;

            T = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
コード例 #3
0
 public ForumPathConstraintUpdator(IForumPathConstraint forumPathConstraint, IForumService forumService)
 {
     _forumPathConstraint = forumPathConstraint;
     _forumService = forumService;
 }
コード例 #4
0
 public ForumService(IContentManager contentManager, IForumPathConstraint forumPathConstraint)
 {
     _contentManager = contentManager;
     _forumPathConstraint = forumPathConstraint;
 }
コード例 #5
0
ファイル: Routes.cs プロジェクト: Trifectgaming/Trifect-CMS
 public Routes(IForumPathConstraint forumPathConstraint)
 {
     _forumPathConstraint = forumPathConstraint;
 }