Configuring MVC Forum

Below is a example of a configuration for MVC Forum. This configuration has Lucene added as search engine, along with a bunch of event listeners etc.
We'll take a look at each sub-section, step by step.

<mvcForum>
  <databaseBuilder type="mvcForum.DataProvider.EntityFramework.DataProviderConfiguration, mvcForum.DataProvider.EntityFramework" />
  <dependencyContainerBuilder type="MVCBootstrap.Ninject.DependencyContainer, MVCBootstrap.Ninject" />
  <storageBuilder type="mvcForum.Web.DependencyBuilders.StorageBuilder, mvcForum.Web" />
  <!--<storageBuilder type="MvcForum.Hosting.Azure.StorageBuilder, MvcForum.Hosting.Azure" />-->
  <themeProviderComponent type="mvcForum.Web.ForumThemeProvider, mvcForum.Web" />
  <themeUrlProviderComponent type="MVCThemes.SimpleThemeURLProvider, MVCThemes" />
  <eventPublisherComponent type="ApplicationBoilerplate.Events.EventPublisher, ApplicationBoilerplate" />
  <asyncTaskComponent type="MVCBootstrap.Web.Events.AsyncTask, MVCBootstrap" />
  <urlProviderComponent type="mvcForum.Web.Providers.MVCURLProvider, mvcForum.Web" />
  <mailServiceComponent type="MVCBootstrap.Web.Mvc.Services.MailService, MVCBootstrap" />
  <membershipServiceComponent type="MVCBootstrap.Web.Mvc.Services.AccountMembershipService, MVCBootstrap" />
  <formsAuthenticationComponent type="MVCBootstrap.Web.Mvc.Services.FormsAuthenticationService, MVCBootstrap" />
  <userProviderComponent type="MVCBootstrap.Web.WebUserProvider, MVCBootstrap" />
  <searchBuilders>
    <add name="Lucene" type="mvcForum.SearchProvider.Lucene.LuceneSearchBuilder, mvcForum.SearchProvider.Lucene" />
    <!--<add name="LuceneOnAzure" type="MvcForum.Hosting.Azure.SearchBuilder, MvcForum.Hosting.Azure" />-->
  </searchBuilders>
  <additionalBuilders>
    <add name="Core" type="mvcForum.Core.DependencyBuilders.CoreBuilder, mvcForum.Core" />
    <add name="ForumConf" type="mvcForum.Web.ForumConfigurator, mvcForum.Web" />
    <add name="ForumAdmin" type="mvcForum.Web.DependencyBuilders.ForumAdminBuilder, mvcForum.Web" />
    <add name="Logging" type="mvcForum.Web.DependencyBuilders.LoggingBuilder, mvcForum.Web" />
    <add name="WebCommon" type="mvcForum.Web.DependencyBuilders.WebCommonBuilder, mvcForum.Web" />
    <add name="AddOnEmbeddedViews" type="mvcForum.AddOns.AddOnBuilder, mvcForum.AddOns" />
    <add name="Akismet" type="mvcForum.AddOns.Akismet.AkismetBuilder, mvcForum.AddOns" />
    <add name="MultiPost" type="mvcForum.AddOns.MultiPost.MultiPostBuilder, mvcForum.AddOns" />
    <add name="NewUserTrial" type="mvcForum.AddOns.NewUserTrial.NewUserTrialBuilder, mvcForum.AddOns" />
    <add name="StopForumSpam" type="mvcForum.AddOns.StopForumSpam.StopForumSpamBuilder, mvcForum.AddOns" />
  </additionalBuilders>
  <contentParserComponents>
    <add name="BBCode" type="mvcForum.AddOns.ContentParsing.BBCParser, mvcForum.AddOns" />
    <add name="MarkDown" type="mvcForum.AddOns.ContentParsing.MarkDownParser, mvcForum.AddOns" />
    <add name="Regular" type="mvcForum.AddOns.ContentParsing.RegularParser, mvcForum.AddOns" />
  </contentParserComponents>
  <eventListenerComponents>
    <add name="Following" type="mvcForum.Web.Events.FollowingEventListener, mvcForum.Web" />
    <add name="PostReportResolved" type="mvcForum.Web.Events.PostReportResolvedEventListener, mvcForum.Web" />
    <add name="NewAndUpdatedContent" type="mvcForum.Web.Events.NewAndUpdatedContentEventListener, mvcForum.Web" />
    <add name="FlagUpdated" type="mvcForum.Web.Events.FlagUpdatedEventListener, mvcForum.Web" />
    <add name="Installation" type="mvcForum.Web.Events.InstallationEventListener, mvcForum.Web" />
    <!-- Lucene -->
    <add name="Lucene" type="mvcForum.SearchProvider.Lucene.LuceneContentChangeEventListener, mvcForum.SearchProvider.Lucene" />
    <!-- Add ons -->
    <add name="Akismet" type="mvcForum.AddOns.Akismet.AkismetAddOn, mvcForum.AddOns" />
    <add name="MultiPost" type="mvcForum.AddOns.MultiPost.MultiPostAddOn, mvcForum.AddOns" />
    <add name="NewUserTrial" type="mvcForum.AddOns.NewUserTrial.NewUserTrialAddOn, mvcForum.AddOns" />
    <add name="StopForumSpam" type="mvcForum.AddOns.StopForumSpam.StopForumSpamAddOn, mvcForum.AddOns" />
  </eventListenerComponents>
  <!--<repositoryComponents>
  <add type="mvcForum.DataProvider.EntityFramework.Repositories.TopicRepository, mvcForum.DataProvider.EntityFramework" interface="mvcForum.Core.Interfaces.Data.ITopicRepository, mvcForum.Core" />
  </repositoryComponents>-->
</mvcForum>

Last edited Sep 13, 2013 at 5:07 AM by steentottrup, version 2

Comments

No comments yet.