Show / Hide Table of Contents

Class CommentAppService

Inheritance
System.Object
BloggingAppServiceBase
CommentAppService
Implements
ICommentAppService
IApplicationService
Namespace: Volo.Blogging.Comments
Assembly: Volo.Blogging.Application.dll
Syntax
public class CommentAppService : BloggingAppServiceBase, ICommentAppService, IApplicationService

Constructors

CommentAppService(ICommentRepository, IGuidGenerator, IBlogUserLookupService)

Declaration
public CommentAppService(ICommentRepository commentRepository, IGuidGenerator guidGenerator, IBlogUserLookupService userLookupService)
Parameters
Type Name Description
ICommentRepository commentRepository
IGuidGenerator guidGenerator
IBlogUserLookupService userLookupService

Fields

UserLookupService

Declaration
protected IBlogUserLookupService UserLookupService
Field Value
Type Description
IBlogUserLookupService

Methods

CreateAsync(CreateCommentDto)

Declaration
public Task<CommentWithDetailsDto> CreateAsync(CreateCommentDto input)
Parameters
Type Name Description
CreateCommentDto input
Returns
Type Description
Task<CommentWithDetailsDto>

DeleteAsync(Guid)

Declaration
public Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

GetHierarchicalListOfPostAsync(Guid)

Declaration
public Task<List<CommentWithRepliesDto>> GetHierarchicalListOfPostAsync(Guid postId)
Parameters
Type Name Description
Guid postId
Returns
Type Description
Task<List<CommentWithRepliesDto>>

UpdateAsync(Guid, UpdateCommentDto)

Declaration
public Task<CommentWithDetailsDto> UpdateAsync(Guid id, UpdateCommentDto input)
Parameters
Type Name Description
Guid id
UpdateCommentDto input
Returns
Type Description
Task<CommentWithDetailsDto>

Implements

ICommentAppService
IApplicationService

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft