mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
592 B
22 lines
592 B
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.GlobalFeatures;
|
|
using Volo.CmsKit.GlobalFeatures;
|
|
|
|
namespace Volo.CmsKit.Contents;
|
|
|
|
[RequiresGlobalFeature(typeof(PagesFeature))]
|
|
public class ContentAppService : CmsKitAppServiceBase, IContentAppService
|
|
{
|
|
protected ContentParser ContentParser { get; }
|
|
|
|
public ContentAppService(ContentParser contentParser)
|
|
{
|
|
ContentParser = contentParser;
|
|
}
|
|
|
|
public async Task<List<ContentFragment>> ParseAsync(string content)
|
|
{
|
|
return await ContentParser.ParseAsync(content);
|
|
}
|
|
}
|
|
|