/// <summary> /// Logs activity /// </summary> /// <param name="pi">Poll</param> /// <param name="answers">Answers</param> private void LogActivity(PollInfo pi, string answers) { if ((CMSContext.ViewMode == ViewModeEnum.LiveSite) && IsLiveSite) { Activity activity = new ActivityPollVoting(pi, CMSContext.CurrentDocument, answers, CMSContext.ActivityEnvironmentVariables); activity.Log(); } }
/// <summary> /// Logs activity /// </summary> /// <param name="pi">Poll</param> /// <param name="answers">Answers</param> private void LogActivity(PollInfo pi, string answers) { if (PortalContext.ViewMode.IsLiveSite() && IsLiveSite) { Activity activity = new ActivityPollVoting(pi, DocumentContext.CurrentDocument, answers, AnalyticsContext.ActivityEnvironmentVariables); activity.Log(); } }