I am dependent on an HttpContext within a utility class to update cache items but for some reason this always returns a NULL context.
It would seem that an HttpContext cannot be inferred from within a receiver or is there something I might be missing?
override void ItemUpdates(SPItemEventProperties properties)
{
base.ItemUpdated(properties);
SPUtilitities.CacheActions(ActionType.Update, properities.ListName);
}
I get a null reference exception within CacheActions(ActionType, string):
void CacheActions(ActionType type, string name)
{
var context = HttpContext.Current; // null reference exception here
}