Merge branch 'SciSharp:master' into master

This commit is contained in:
hchen2020 2024-03-22 08:25:22 -05:00 committed by GitHub
commit f7becd9bb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,6 +106,11 @@ public class RoutingContext : IRoutingContext
await hook.OnAgentDequeued(agentId, currentAgentId, reason: reason)
).Wait();
if (string.IsNullOrEmpty(currentAgentId))
{
return;
}
// Run the routing rule
var agency = _services.GetRequiredService<IAgentService>();
var agent = agency.LoadAgent(currentAgentId).Result;