Inheritance
CommentingViewComponent
Assembly: Volo.CmsKit.Public.Web.dll
[ViewComponent(Name = "CmsCommenting")]
[Widget(ScriptTypes = new Type[] { typeof(CommentingScriptBundleContributor) }, StyleTypes = new Type[] { typeof(CommentingStyleBundleContributor) }, RefreshUrl = "/CmsKitPublicWidgets/Commenting", AutoInitialize = true)]
public class CommentingViewComponent : AbpViewComponent
Constructors
Declaration
public CommentingViewComponent(ICommentPublicAppService commentPublicAppService, IOptions<AbpMvcUiOptions> options, IMarkdownToHtmlRenderer markdownToHtmlRenderer, IOptions<CmsKitCommentOptions> cmsKitCommentOptions, SimpleMathsCaptchaGenerator simpleMathsCaptchaGenerator)
Parameters
Properties
Declaration
public AbpMvcUiOptions AbpMvcUiOptions { get; }
Property Value
Declaration
[HiddenInput]
[BindProperty]
public Guid CaptchaId { get; set; }
Property Value
Declaration
public CaptchaOutput CaptchaOutput { get; set; }
Property Value
Declaration
public CmsKitCommentOptions CmsKitCommentOptions { get; }
Property Value
Declaration
public ICommentPublicAppService CommentPublicAppService { get; }
Property Value
Declaration
[BindProperty]
public CommentingViewComponent.CommentingViewModel Input { get; set; }
Property Value
Declaration
public IMarkdownToHtmlRenderer MarkdownToHtmlRenderer { get; }
Property Value
Declaration
[HiddenInput]
[BindProperty]
public string RecaptchaToken { get; set; }
Property Value
Declaration
public SimpleMathsCaptchaGenerator SimpleMathsCaptchaGenerator { get; }
Property Value
Methods
Declaration
public Task<CaptchaOutput> GenerateCaptchaAsync()
Returns
Declaration
public string GetCaptchaImageBase64(byte[] bytes)
Parameters
Type |
Name |
Description |
byte[] |
bytes |
|
Returns
Declaration
public virtual Task<IViewComponentResult> InvokeAsync(string entityType, string entityId, bool isReadOnly, IEnumerable<string> referralLinks = null)
Parameters
Returns
Extension Methods