Show / Hide Table of Contents

Class CommentingViewComponent

Inheritance
object
ViewComponent
AbpViewComponent
CommentingViewComponent
Inherited Members
AbpViewComponent.LazyServiceProvider
AbpViewComponent.ServiceProvider
AbpViewComponent.ObjectMapperContext
AbpViewComponent.ObjectMapper
ViewComponent.Content(string)
ViewComponent.View()
ViewComponent.View(string)
ViewComponent.View<TModel>(TModel)
ViewComponent.View<TModel>(string, TModel)
ViewComponent.HttpContext
ViewComponent.Request
ViewComponent.User
ViewComponent.UserClaimsPrincipal
ViewComponent.RouteData
ViewComponent.ViewBag
ViewComponent.ModelState
ViewComponent.Url
ViewComponent.ViewComponentContext
ViewComponent.ViewContext
ViewComponent.ViewData
ViewComponent.TempData
ViewComponent.ViewEngine
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Commenting
Assembly: Volo.CmsKit.Public.Web.dll
Syntax
[ViewComponent(Name = "CmsCommenting")]
[Widget(ScriptTypes = new Type[] { typeof(CommentingScriptBundleContributor) }, StyleTypes = new Type[] { typeof(CommentingStyleBundleContributor) }, RefreshUrl = "/CmsKitPublicWidgets/Commenting", AutoInitialize = true)]
public class CommentingViewComponent : AbpViewComponent

Constructors

CommentingViewComponent(ICommentPublicAppService, IOptions<AbpMvcUiOptions>, IMarkdownToHtmlRenderer, IOptions<CmsKitCommentOptions>, SimpleMathsCaptchaGenerator)

Declaration
public CommentingViewComponent(ICommentPublicAppService commentPublicAppService, IOptions<AbpMvcUiOptions> options, IMarkdownToHtmlRenderer markdownToHtmlRenderer, IOptions<CmsKitCommentOptions> cmsKitCommentOptions, SimpleMathsCaptchaGenerator simpleMathsCaptchaGenerator)
Parameters
Type Name Description
ICommentPublicAppService commentPublicAppService
IOptions<AbpMvcUiOptions> options
IMarkdownToHtmlRenderer markdownToHtmlRenderer
IOptions<CmsKitCommentOptions> cmsKitCommentOptions
SimpleMathsCaptchaGenerator simpleMathsCaptchaGenerator

Properties

AbpMvcUiOptions

Declaration
public AbpMvcUiOptions AbpMvcUiOptions { get; }
Property Value
Type Description
AbpMvcUiOptions

CaptchaId

Declaration
[HiddenInput]
[BindProperty]
public Guid CaptchaId { get; set; }
Property Value
Type Description
Guid

CaptchaOutput

Declaration
public CaptchaOutput CaptchaOutput { get; set; }
Property Value
Type Description
CaptchaOutput

CmsKitCommentOptions

Declaration
public CmsKitCommentOptions CmsKitCommentOptions { get; }
Property Value
Type Description
CmsKitCommentOptions

CommentPublicAppService

Declaration
public ICommentPublicAppService CommentPublicAppService { get; }
Property Value
Type Description
ICommentPublicAppService

Input

Declaration
[BindProperty]
public CommentingViewComponent.CommentingViewModel Input { get; set; }
Property Value
Type Description
CommentingViewComponent.CommentingViewModel

MarkdownToHtmlRenderer

Declaration
public IMarkdownToHtmlRenderer MarkdownToHtmlRenderer { get; }
Property Value
Type Description
IMarkdownToHtmlRenderer

RecaptchaToken

Declaration
[HiddenInput]
[BindProperty]
public string RecaptchaToken { get; set; }
Property Value
Type Description
string

SimpleMathsCaptchaGenerator

Declaration
public SimpleMathsCaptchaGenerator SimpleMathsCaptchaGenerator { get; }
Property Value
Type Description
SimpleMathsCaptchaGenerator

Methods

GenerateCaptchaAsync()

Declaration
public Task<CaptchaOutput> GenerateCaptchaAsync()
Returns
Type Description
Task<CaptchaOutput>

GetCaptchaImageBase64(byte[])

Declaration
public string GetCaptchaImageBase64(byte[] bytes)
Parameters
Type Name Description
byte[] bytes
Returns
Type Description
string

InvokeAsync(string, string, bool, IEnumerable<string>)

Declaration
public virtual Task<IViewComponentResult> InvokeAsync(string entityType, string entityId, bool isReadOnly, IEnumerable<string> referralLinks = null)
Parameters
Type Name Description
string entityType
string entityId
bool isReadOnly
IEnumerable<string> referralLinks
Returns
Type Description
Task<IViewComponentResult>

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform