-
-
Notifications
You must be signed in to change notification settings - Fork 604
optimize IRoutingContext,IRoutingService,IHttpRequestHook use async method #1284
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 ✨Latest suggestions up to a3f27ab
Previous suggestions✅ Suggestions up to commit 766477d
|
|||||||||||||||||||||||||||||||||||||
|
/describe |
|
PR Description updated to latest commit (a3f27ab)
|
|
/review /improve |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/improve |
|
Persistent suggestions updated to latest commit a3f27ab |
|
reviewed |
PR Type
Enhancement
Description
Convert synchronous routing context methods to async Task-based methods
Replace synchronous GetAgent method with async Task<Agent?> GetAgent
Update IRoutingService methods to return Task-wrapped results
Make IHttpRequestHook.OnAddHttpHeaders async Task method
Update all call sites to await async method invocations
Diagram Walkthrough
File Walkthrough
33 files
Make OnAddHttpHeaders method async TaskRemove sync GetAgent, consolidate to async GetAgentConvert Push, Pop, PopTo, Replace, Empty to async TaskMake GetRoutableAgents, GetRulesByAgentName/Id async TaskUpdate to await async GetUtilityContent and GetAgent callsReplace GetAgentAsync call with GetAgent async methodReplace GetAgentAsync calls with GetAgent async methodAwait async routing context Push and Pop methodsReplace GetAgentAsync with GetAgent async method callConvert GetAgent to async Task, remove GetAgentAsync wrapperAwait async PopTo routing context methodAwait async Push and HasMissingRequiredField method callsAwait async GetRoutableAgents and GetRulesByAgentId callsAwait async FixMalformedResponse and context Push, Empty callsAwait async FixMalformedResponse, Pop, Empty method callsAwait async FixMalformedResponse, Pop, Empty method callsConvert FixMalformedResponse to async Task methodConvert all routing context methods to async Task-basedConvert HasMissingRequiredField to async Task with tuple returnAwait async Push routing context methodConvert GetRoutableAgents, GetRulesByAgentName/Id to async TaskConvert BuildToken and GenerateJwtToken to async Task methodsReplace GetAgentAsync calls with GetAgent async methodReplace GetAgentAsync call with GetAgent async methodAwait async PrepareRequestHeaders method callConvert OnAddHttpHeaders to async Task methodRemove sync GetAgent, consolidate to async GetAgent methodAwait async Empty and Pop routing context method callsAwait async FixMalformedResponse and Empty method callsAwait async FixMalformedResponse and Empty method callsAwait async Push routing context method callConvert GetHints to async Task, await GetAgent callAwait async Push routing context method call