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:
SiteMetricsProcessSPI, 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.
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; ...