Project Description
Gives the ability to count shape views in a variety of ways. Currently only 1 implemented

Features:
-So.ShapeUserViewCounter:


Example IShapeTableProvider:

builder.Describe("Parts_ExampleShape").OnDisplaying(displaying =>
{
var shapeUserViewCounterService = _workContextAccessor.GetContext().Resolve<IShapeUserViewCounterService>();
var shape = displaying.Shape;
int contentItemid = 1;
var currentUser = _workContextAccessor.GetContext().CurrentUser;

if (contentItemid > 0 && currentUser != null)
{
shapeUserViewCounterService.UpSertShapeUserView("Parts_ExampleShape", contentItemid, currentUser.Id);
}
});

Last edited Jul 10, 2012 at 9:11 AM by Znowman, version 4