public CommentsUIService(CommentingSettings settings, IGetWebpageCommentingInfo getWebpageCommentingInfo, ISession session, IStringResourceProvider stringResourceProvider) { _settings = settings; _getWebpageCommentingInfo = getWebpageCommentingInfo; _session = session; _stringResourceProvider = stringResourceProvider; }
public CommentTokenProvider(IUniquePageService uniquePageService, CommentingSettings commentingSettings, Site site) { _uniquePageService = uniquePageService; _commentingSettings = commentingSettings; _site = site; }
public CommentTokenProvider(IUniquePageService uniquePageService, CommentingSettings commentingSettings, Site site, ISession session) { _uniquePageService = uniquePageService; _commentingSettings = commentingSettings; _site = site; _session = session; }
public static bool AreCommentsEnabled(this Webpage webpage, CommentingInfo commentingInfo, CommentingSettings settings) { if (webpage == null || settings == null) { return(false); } if (commentingInfo != null) { if (commentingInfo.CommentingEnabledStatus != CommentingEnabledStatus.System) { return(commentingInfo.CommentingEnabledStatus == CommentingEnabledStatus.Enabled); } } return(settings.AllowedTypes.Contains(webpage.GetType())); }
public GetCurrentPageCommentsWidgetModel(IGetWebpageCommentingInfo getWebpageCommentingInfo, CommentingSettings commentingSettings) { _getWebpageCommentingInfo = getWebpageCommentingInfo; _commentingSettings = commentingSettings; }
public RedirectToRouteResult Index([IoCModelBinder(typeof(CommentingSettingsModelBinder))] CommentingSettings newSettings) { _commentingSettingsAdminService.UpdateSettings(newSettings); TempData.SuccessMessages().Add("Commenting settings saved"); return(RedirectToAction("Index")); }
public CommentsUIService(CommentingSettings settings, IGetWebpageCommentingInfo getWebpageCommentingInfo, ISession session) { _settings = settings; _getWebpageCommentingInfo = getWebpageCommentingInfo; _session = session; }
public void UpdateSettings(CommentingSettings settings) { _configurationProvider.SaveSettings(settings); }