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)); }
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; }
public ForumPathConstraintUpdator(IForumPathConstraint forumPathConstraint, IForumService forumService) { _forumPathConstraint = forumPathConstraint; _forumService = forumService; }
public ForumService(IContentManager contentManager, IForumPathConstraint forumPathConstraint) { _contentManager = contentManager; _forumPathConstraint = forumPathConstraint; }
public Routes(IForumPathConstraint forumPathConstraint) { _forumPathConstraint = forumPathConstraint; }