Merge pull request #181 from hchen2020/master

Remove LoadAgent cache.
This commit is contained in:
Haiping 2023-10-19 15:59:36 -05:00 committed by GitHub
commit 4a7d20cf42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,9 +5,6 @@ namespace BotSharp.Core.Agents.Services;
public partial class AgentService
{
#if !DEBUG
[MemoryCache(10 * 60)]
#endif
public async Task<Agent> LoadAgent(string id)
{
var hooks = _services.GetServices<IAgentHook>();