Show / Hide Table of Contents

Class BlogPostPublicAppService

Inheritance
object
ApplicationService
CmsKitAppServiceBase
CmsKitPublicAppServiceBase
BlogPostPublicAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IBlogPostPublicAppService
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.Blogs
Assembly: Volo.CmsKit.Public.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.BlogEnable" })]
[RequiresGlobalFeature(typeof(BlogsFeature))]
public class BlogPostPublicAppService : CmsKitPublicAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IBlogPostPublicAppService, IApplicationService, IRemoteService

Constructors

BlogPostPublicAppService(IBlogRepository, IBlogPostRepository, ITagRepository)

Declaration
public BlogPostPublicAppService(IBlogRepository blogRepository, IBlogPostRepository blogPostRepository, ITagRepository tagRepository)
Parameters
Type Name Description
IBlogRepository blogRepository
IBlogPostRepository blogPostRepository
ITagRepository tagRepository

Properties

BlogPostRepository

Declaration
protected IBlogPostRepository BlogPostRepository { get; }
Property Value
Type Description
IBlogPostRepository

BlogRepository

Declaration
protected IBlogRepository BlogRepository { get; }
Property Value
Type Description
IBlogRepository

TagRepository

Declaration
protected ITagRepository TagRepository { get; }
Property Value
Type Description
ITagRepository

Methods

DeleteAsync(Guid)

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

GetAsync(string, string)

Declaration
public virtual Task<BlogPostCommonDto> GetAsync(string blogSlug, string blogPostSlug)
Parameters
Type Name Description
string blogSlug
string blogPostSlug
Returns
Type Description
Task<BlogPostCommonDto>

GetAuthorHasBlogPostAsync(Guid)

Declaration
public virtual Task<CmsUserDto> GetAuthorHasBlogPostAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<CmsUserDto>

GetAuthorsHasBlogPostsAsync(BlogPostFilteredPagedAndSortedResultRequestDto)

Declaration
public virtual Task<PagedResultDto<CmsUserDto>> GetAuthorsHasBlogPostsAsync(BlogPostFilteredPagedAndSortedResultRequestDto input)
Parameters
Type Name Description
BlogPostFilteredPagedAndSortedResultRequestDto input
Returns
Type Description
Task<PagedResultDto<CmsUserDto>>

GetListAsync(string, BlogPostGetListInput)

Declaration
public virtual Task<PagedResultDto<BlogPostCommonDto>> GetListAsync(string blogSlug, BlogPostGetListInput input)
Parameters
Type Name Description
string blogSlug
BlogPostGetListInput input
Returns
Type Description
Task<PagedResultDto<BlogPostCommonDto>>

GetTagNameAsync(Guid)

Declaration
public Task<string> GetTagNameAsync(Guid tagId)
Parameters
Type Name Description
Guid tagId
Returns
Type Description
Task<string>

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IBlogPostPublicAppService
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