All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 1m15s
Reviewed-on: #9
18 lines
470 B
C#
18 lines
470 B
C#
namespace YaeBlog.Services;
|
|
|
|
public class BlogHostedService(
|
|
ILogger<BlogHostedService> logger,
|
|
RendererService rendererService) : IHostedService
|
|
{
|
|
public async Task StartAsync(CancellationToken cancellationToken)
|
|
{
|
|
logger.LogInformation("Failed to load cache, render essays.");
|
|
await rendererService.RenderAsync();
|
|
}
|
|
|
|
public Task StopAsync(CancellationToken cancellationToken)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|