Show / Hide Table of Contents

Class CommentPublicAppService

Inheritance
object
ApplicationService
CmsKitAppServiceBase
CmsKitPublicAppServiceBase
CommentPublicAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
ICommentPublicAppService
IApplicationService
IRemoteService
Inherited Members
ApplicationService.CheckPolicyAsync(string)
ApplicationService.CreateLocalizer()
ApplicationService.LazyServiceProvider
ApplicationService.ServiceProvider
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.DataFilter
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Public.Comments
Assembly: Volo.CmsKit.Public.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.CommentEnable" })]
[RequiresGlobalFeature(typeof(CommentsFeature))]
public class CommentPublicAppService : CmsKitPublicAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, ICommentPublicAppService, IApplicationService, IRemoteService

Constructors

CommentPublicAppService(ICommentRepository, ICmsUserLookupService, IDistributedEventBus, CommentManager, IOptionsSnapshot<CmsKitCommentOptions>, ISettingManager)

Declaration
public CommentPublicAppService(ICommentRepository commentRepository, ICmsUserLookupService cmsUserLookupService, IDistributedEventBus distributedEventBus, CommentManager commentManager, IOptionsSnapshot<CmsKitCommentOptions> cmsCommentOptions, ISettingManager settingManager)
Parameters
Type Name Description
ICommentRepository commentRepository
ICmsUserLookupService cmsUserLookupService
IDistributedEventBus distributedEventBus
CommentManager commentManager
IOptionsSnapshot<CmsKitCommentOptions> cmsCommentOptions
ISettingManager settingManager

Fields

RegexUrlPattern

Declaration
protected string RegexUrlPattern
Field Value
Type Description
string

Properties

CmsCommentOptions

Declaration
protected CmsKitCommentOptions CmsCommentOptions { get; }
Property Value
Type Description
CmsKitCommentOptions

CmsUserLookupService

Declaration
protected ICmsUserLookupService CmsUserLookupService { get; }
Property Value
Type Description
ICmsUserLookupService

CommentManager

Declaration
protected CommentManager CommentManager { get; }
Property Value
Type Description
CommentManager

CommentRepository

Declaration
protected ICommentRepository CommentRepository { get; }
Property Value
Type Description
ICommentRepository

DistributedEventBus

Declaration
public IDistributedEventBus DistributedEventBus { get; }
Property Value
Type Description
IDistributedEventBus

Methods

CheckExternalUrls(string, string)

Declaration
protected virtual void CheckExternalUrls(string entityType, string text)
Parameters
Type Name Description
string entityType
string text

CreateAsync(string, string, CreateCommentInput)

Declaration
[Authorize]
public virtual Task<CommentDto> CreateAsync(string entityType, string entityId, CreateCommentInput input)
Parameters
Type Name Description
string entityType
string entityId
CreateCommentInput input
Returns
Type Description
Task<CommentDto>

DeleteAsync(Guid)

Declaration
[Authorize]
public virtual Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

GetListAsync(string, string)

Declaration
public virtual Task<ListResultDto<CommentWithDetailsDto>> GetListAsync(string entityType, string entityId)
Parameters
Type Name Description
string entityType
string entityId
Returns
Type Description
Task<ListResultDto<CommentWithDetailsDto>>

UpdateAsync(Guid, UpdateCommentInput)

Declaration
[Authorize]
public virtual Task<CommentDto> UpdateAsync(Guid id, UpdateCommentInput input)
Parameters
Type Name Description
Guid id
UpdateCommentInput input
Returns
Type Description
Task<CommentDto>

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
ICommentPublicAppService
IApplicationService
IRemoteService

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