ActivityFeed depends on the following third party libraries available as NuGet packages:
  • RavenDB
  • KnockoutJS

Changing RavenDB connection string used by ActivityFeed

ConnectionString can be changed in Web.config file under <connectionStrings> section.

        <add name="ActivityFeed" connectionString="Url=http://ravenDb:8080;User=u;Password=p" />
ConnectionString can be one of:
  • "Memory" - ActivityFeed will use embedded DocumentStore running in memory (suitable for development/debugging/unit testing).
  • file://local-path - ActivityFeed will use embedded DocumentStore with data stored in a folder pointed to by local-path (suitable for development).
  • http://raven-db-url - ActivityFeed will use RavenDB instance pointed to by the url (suitable for production).
  • A valid RavenDB connection string. See:
If no ActivityFeed connection string is not present, Memory is assumed as default.

Registering ActivityFeed api http handler

ActivityFeed exposes a REST api used by a UI. The API is realized as a custom http handler that needs to be registered in web.config.
NOTE: This is done automatically by OpenWaves.ActivityFeed.Web NuGet package.

<location path="activityFeed">
                <add name="AF" verb="*" path="*" type="OpenWaves.ActivityFeed.Web.Hanlder.ActivityFeedApiHandler"  />
            <modules runAllManagedModulesForAllRequests="true" />
            <validation validateIntegratedModeConfiguration="false" />
               <add name="AF" verb="*" path="*" type="OpenWaves.ActivityFeed.Web.Hanlder.ActivityFeedApiHandler" />

ServiceLocator.SetResolver(new BasicResolver()
    .Register<IDocumentSessionProvider>(new DocumentSessionPerRequestProvider()));

Last edited Jul 13, 2012 at 6:02 AM by grzwie, version 7


No comments yet.