Clear a bit more
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user