Clear a bit more

This commit is contained in:
2025-08-05 19:34:42 +07:00
parent 0c8c3de807
commit 2dcbcc3ef2
9 changed files with 143 additions and 136 deletions

View File

@@ -13,7 +13,7 @@ public class AgentGrain : Grain, IAgentGrain, IRemindable
private readonly IPersistentState<AgentGrainState> _state;
private readonly ILogger<AgentGrain> _logger;
private readonly IBotService _botService;
private readonly IStatisticService _statisticService;
private readonly IAgentService _agentService;
private const string _updateSummaryReminderName = "UpdateAgentSummary";
public AgentGrain(
@@ -21,12 +21,12 @@ public class AgentGrain : Grain, IAgentGrain, IRemindable
IPersistentState<AgentGrainState> state,
ILogger<AgentGrain> logger,
IBotService botService,
IStatisticService statisticService)
IAgentService agentService)
{
_state = state;
_logger = logger;
_botService = botService;
_statisticService = statisticService;
_agentService = agentService;
}
public override Task OnActivateAsync(CancellationToken cancellationToken)
@@ -135,7 +135,7 @@ public class AgentGrain : Grain, IAgentGrain, IRemindable
};
// Save summary to database
await _statisticService.SaveOrUpdateAgentSummary(summary);
await _agentService.SaveOrUpdateAgentSummary(summary);
}
catch (Exception ex)
{