Inheritance
CommentPublicAppService
Assembly: Volo.CmsKit.Public.Application.dll
[RequiresFeature(new string[] { "CmsKit.CommentEnable" })]
[RequiresGlobalFeature(typeof(CommentsFeature))]
public class CommentPublicAppService : CmsKitPublicAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, ICommentPublicAppService, IApplicationService, IRemoteService
Constructors
Declaration
public CommentPublicAppService(ICommentRepository commentRepository, ICmsUserLookupService cmsUserLookupService, IDistributedEventBus distributedEventBus, CommentManager commentManager, IOptionsSnapshot<CmsKitCommentOptions> cmsCommentOptions, ISettingManager settingManager)
Parameters
Fields
Declaration
protected string RegexUrlPattern
Field Value
Properties
Declaration
protected CmsKitCommentOptions CmsCommentOptions { get; }
Property Value
Declaration
protected ICmsUserLookupService CmsUserLookupService { get; }
Property Value
Declaration
protected CommentManager CommentManager { get; }
Property Value
Declaration
protected ICommentRepository CommentRepository { get; }
Property Value
Declaration
public IDistributedEventBus DistributedEventBus { get; }
Property Value
Methods
Declaration
protected virtual void CheckExternalUrls(string entityType, string text)
Parameters
Declaration
[Authorize]
public virtual Task<CommentDto> CreateAsync(string entityType, string entityId, CreateCommentInput input)
Parameters
Returns
Declaration
[Authorize]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
public virtual Task<ListResultDto<CommentWithDetailsDto>> GetListAsync(string entityType, string entityId)
Parameters
Returns
Declaration
[Authorize]
public virtual Task<CommentDto> UpdateAsync(Guid id, UpdateCommentInput input)
Parameters
Returns
Implements
Extension Methods