Show / Hide Table of Contents

Class PostAppService

Inheritance
System.Object
BloggingAppServiceBase
PostAppService
Implements
IPostAppService
IApplicationService
Namespace: Volo.Blogging.Posts
Assembly: Volo.Blogging.Application.dll
Syntax
public class PostAppService : BloggingAppServiceBase, IPostAppService, IApplicationService

Constructors

PostAppService(IPostRepository, ITagRepository, ICommentRepository, IBlogUserLookupService)

Declaration
public PostAppService(IPostRepository postRepository, ITagRepository tagRepository, ICommentRepository commentRepository, IBlogUserLookupService userLookupService)
Parameters
Type Name Description
IPostRepository postRepository
ITagRepository tagRepository
ICommentRepository commentRepository
IBlogUserLookupService userLookupService

Properties

UserLookupService

Declaration
protected IBlogUserLookupService UserLookupService { get; }
Property Value
Type Description
IBlogUserLookupService

Methods

CreateAsync(CreatePostDto)

Declaration
public Task<PostWithDetailsDto> CreateAsync(CreatePostDto input)
Parameters
Type Name Description
CreatePostDto input
Returns
Type Description
Task<PostWithDetailsDto>

DeleteAsync(Guid)

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

GetAsync(Guid)

Declaration
public Task<PostWithDetailsDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<PostWithDetailsDto>

GetForReadingAsync(GetPostInput)

Declaration
public Task<PostWithDetailsDto> GetForReadingAsync(GetPostInput input)
Parameters
Type Name Description
GetPostInput input
Returns
Type Description
Task<PostWithDetailsDto>

GetListByBlogIdAndTagName(Guid, String)

Declaration
public Task<ListResultDto<PostWithDetailsDto>> GetListByBlogIdAndTagName(Guid id, string tagName)
Parameters
Type Name Description
Guid id
System.String tagName
Returns
Type Description
Task<ListResultDto<PostWithDetailsDto>>

GetTimeOrderedListAsync(Guid)

Declaration
public Task<ListResultDto<PostWithDetailsDto>> GetTimeOrderedListAsync(Guid blogId)
Parameters
Type Name Description
Guid blogId
Returns
Type Description
Task<ListResultDto<PostWithDetailsDto>>

UpdateAsync(Guid, UpdatePostDto)

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

Implements

IPostAppService
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