Ejemplo n.º 1
0
 private void UpdateCache(Enum commentsTargetType, Guid commentsTargetEntityId)
 {
     if (commentsTargetType.Is(IntranetEntityTypeEnum.News, IntranetEntityTypeEnum.Social, IntranetEntityTypeEnum.Events))
     {
         var activityService = _activitiesServiceFactory.GetCacheableIntranetActivityService(commentsTargetEntityId);
         activityService.UpdateActivityCache(commentsTargetEntityId);
     }
 }
Ejemplo n.º 2
0
 private void UpdateCache(Enum commentsTargetType, Guid commentsTargetEntityId)
 {
     if (ContextExtensions.HasFlagScalar(commentsTargetType, ContextType.Activity | ContextType.PagePromotion))
     {
         var activityService = _activitiesServiceFactory.GetCacheableIntranetActivityService(commentsTargetEntityId);
         activityService.UpdateActivityCache(commentsTargetEntityId);
     }
 }