예제 #1
0
        public ForumModule()
        {
            var activityPublisher = new ForumActivityPublisher();

            activityPublisher.InitSettings(ForumManager.Settings);

            Context = new ModuleContext
            {
                DefaultSortOrder        = 2,
                ThemesFolderVirtualPath = "~/products/community/modules/forum/app_themes",
                ImageFolder             = "forumimages",
                SmallIconFileName       = "forum_mini_icon.png",
                IconFileName            = "forum_icon.png",
                SubscriptionManager     = new ForumSubscriptionManager(),
                GlobalHandler           = new ForumGlobalHandler(),
                StatisticProvider       = new ForumStatisticProvider(),
                UserActivityPublishers  = new List <IUserActivityPublisher>()
                {
                    activityPublisher
                },
                GetCreateContentPageAbsoluteUrl = ForumShortcutProvider.GetCreateContentPageUrl,
                SearchHandler = new ForumSearchHandler(),
            };
        }
예제 #2
0
        public ForumModule()
        {
            var activityPublisher = new ForumActivityPublisher();
            activityPublisher.InitSettings(ForumManager.Settings);

            Context = new ModuleContext
            {
                DefaultSortOrder = 2,
                ThemesFolderVirtualPath = "~/products/community/modules/forum/app_themes",
                ImageFolder = "forumimages",
                SmallIconFileName = "forum_mini_icon.png",
                IconFileName = "forum_icon.png",
                SubscriptionManager = new ForumSubscriptionManager(),
                GlobalHandler = new ForumGlobalHandler(),
                StatisticProvider = new ForumStatisticProvider(),
                UserActivityPublishers = new List<IUserActivityPublisher>() { activityPublisher },
                GetCreateContentPageAbsoluteUrl = ForumShortcutProvider.GetCreateContentPageUrl,
                SearchHandler = new ForumSearchHandler(),
            };
        }