-
-
Notifications
You must be signed in to change notification settings - Fork 594
optimize CreateNewConversation use async method #1255
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
|
reviewed |
PR Type
Enhancement
Description
Convert CreateNewConversation to async Task method
Replace synchronous File.WriteAllText with async variants
Add async database operations in MongoDB repository
Handle duplicate key errors gracefully in MongoDB
Diagram Walkthrough
File Walkthrough
IBotSharpRepository.cs
Convert CreateNewConversation to async Tasksrc/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs
ConversationService.cs
Await async CreateNewConversation callsrc/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.cs
FileRepository.Conversation.cs
Implement async file operationssrc/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.Conversation.cs
MongoRepository.Conversation.cs
Implement async MongoDB operations with error handlingsrc/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Conversation.cs