Ejemplo n.º 1
0
        public static void RegisterView(String itemKey, String url, String user)
        {
            DatasetInfoDataSource datasetInfoDataSource = new DatasetInfoDataSource();
            ViewDataSource viewDS = new ViewDataSource();

            datasetInfoDataSource.IncrementView(itemKey);

            // No logging if analytics are disabled
            if (OgdiConfiguration.GetValue("IsAnalytics") == "0") return;

            viewDS.AddView(new ViewEntry()
            {
                Date = DateTime.Now,
                ItemKey = itemKey,
                User = user,
                RequestedUrl = url,
            });
        }
Ejemplo n.º 2
0
 //CETTE METHODE NE SERT A RIEN
 public static void IncrementView(String itemKey)
 {
     DatasetInfoDataSource datasetInfoDS = new DatasetInfoDataSource();
     datasetInfoDS.IncrementView(itemKey);
 }