-
-
Notifications
You must be signed in to change notification settings - Fork 580
refine routing context #1170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refine routing context #1170
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
Add
AddDialogs
method to routing context interfaceRefactor dialog management for better consistency
Improve logging format in observers
Minor code cleanup and variable renaming
Diagram Walkthrough
File Walkthrough
IRoutingContext.cs
Add AddDialogs method to interface
src/Infrastructure/BotSharp.Abstraction/Routing/IRoutingContext.cs
AddDialogs
method to interface for appending dialog listsConversationObserver.cs
Refactor observer with improved logging
src/Infrastructure/BotSharp.Core/MessageHub/Observers/ConversationObserver.cs
routeCtx
toroutingCtx
AddDialogs
method callRoutingContext.cs
Implement AddDialogs with defensive copying
src/Infrastructure/BotSharp.Core/Routing/RoutingContext.cs
AddDialogs
method for appending dialog collectionsSetDialogs
to create defensive copiesGetDialogs
to return defensive copiesRoutingService.InvokeAgent.cs
Use AddDialogs for message handling
src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs
Context.SetDialogs
calls withContext.AddDialogs
FileInstructService.SelectFile.cs
Rename routing context variable
src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.SelectFile.cs
routeContext
toroutingCtx
for consistencyChatHubObserver.cs
Add import and improve logging
src/Plugins/BotSharp.Plugin.ChatHub/Observers/ChatHubObserver.cs
BotSharp.Core.MessageHub.Observers
MySqlService.cs
Reorder using statements
src/Plugins/BotSharp.Plugin.ExcelHandler/Services/MySqlService.cs
ExcelHandlerSettings.cs
Add documentation comment
src/Plugins/BotSharp.Plugin.ExcelHandler/Settings/ExcelHandlerSettings.cs