From 6e88cc6f2c3cbae4908aec782cee74fbd7d46163 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Mon, 11 Dec 2023 17:15:37 -0600 Subject: [PATCH] Set FunctionName of InvokeFunction. --- .../BotSharp.Core/Routing/RoutingService.InvokeFunction.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeFunction.cs b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeFunction.cs index 7d142c7d..81e8ad90 100644 --- a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeFunction.cs +++ b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeFunction.cs @@ -9,6 +9,7 @@ public partial class RoutingService var function = _services.GetServices().FirstOrDefault(x => x.Name == name); if (function == null) return false; + message.FunctionName = name; return await function.Execute(message); } }