Social credit validation and recalculation

This commit is contained in:
2025-11-02 02:11:34 +08:00
parent 70fdc247e7
commit 5e5f4528b9
9 changed files with 2826 additions and 14 deletions

View File

@@ -0,0 +1,21 @@
using Quartz;
namespace DysonNetwork.Pass.Credit;
public class SocialCreditValidationJob(SocialCreditService socialCreditService, ILogger<SocialCreditValidationJob> logger) : IJob
{
public async Task Execute(IJobExecutionContext context)
{
logger.LogInformation("Starting social credit validation...");
try
{
await socialCreditService.ValidateSocialCredits();
logger.LogInformation("Social credit validation completed successfully.");
}
catch (Exception ex)
{
logger.LogError(ex, "Error occurred during social credit validation.");
}
}
}