O'Reilly logo

Microsoft SharePoint 2010 Business Application Blueprints by Mike Oryszak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a site metrics gathering process

In order to gather the metrics for the active projects we will use a timer job to support the scheduled job scenario reviewed at the beginning of the chapter.

To create the timer job:

  1. Start by adding an Empty Element to the solution.
  2. Name the element SiteMetricsProcess.
  3. Within the SiteMetricsProcess SPI, we now need to add in a class named SiteMetricsTimerJob.cs. This class is where the actual timer job and its execution logic will reside.
  4. We will need to import the following namespaces to support our work:
    using System; using System.Collections.Generic; using System.Data; using Microsoft.Office.Server.Search; using Microsoft.Office.Server.Search.Query; using Microsoft.Office.Server.Search.Administration; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required