refactor: 处理器重构为使用Async

This commit is contained in:
2024-01-24 21:32:14 +08:00
parent 78c6a806bf
commit 5f8db267d9
3 changed files with 7 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ namespace YaeBlog.Core.Abstractions;
public interface IPostRenderProcessor
{
BlogEssay Process(BlogEssay essay);
Task<BlogEssay> ProcessAsync(BlogEssay essay);
string Name { get; }
}

View File

@@ -4,7 +4,7 @@ namespace YaeBlog.Core.Abstractions;
public interface IPreRenderProcessor
{
BlogContent Process(BlogContent content);
Task<BlogContent> ProcessAsync(BlogContent content);
string Name { get; }
}