use prim ctor and fixed warnings: Botcontroller and effected classes

This commit is contained in:
CWX
2025-01-18 14:52:15 +00:00
parent a3d3d6490f
commit 6d5ff3af2d
7 changed files with 118 additions and 91 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ public class BotGenerator
/// <param name="sessionId">Session id</param>
/// <param name="botGenerationDetails">details on how to generate bots</param>
/// <returns>constructed bot</returns>
public BotBase PrepareAndGenerateBot(string sessionId, BotGenerationDetails botGenerationDetails)
public BotBase PrepareAndGenerateBot(string sessionId, BotGenerationDetails? botGenerationDetails)
{
var preparedBotBase = GetPreparedBotBase(
botGenerationDetails.EventRole ?? botGenerationDetails.Role, // Use eventRole if provided,