refactor(abstractions): rename ILambdaHostContext to ILambdaInvocationContext#253
Merged
Conversation
…ambdaInvocationContext` - Update all references to `ILambdaHostContext` with `ILambdaInvocationContext` in core abstractions. - Rename `ILambdaHostContextFactory` to `ILambdaInvocationContextFactory` and ensure consistent usage. - Adjust unit tests to reflect the updated interface and implementation names. - Apply similar updates to `LambdaHostContextAccessor`, renamed to `LambdaInvocationContextFactoryAccessor`. - Align delegate and extension methods with the new naming convention. - Update documentation within comments to correspond with the new terms.
…tion token handling - Add snapshot test for verifying `ExpressionLambda` handling of `CancellationToken` and `LambdaInvocationContext`. - Ensure test correctness through verified `.g.verified.cs` snapshot file.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #253 +/- ##
==========================================
+ Coverage 88.37% 88.41% +0.03%
==========================================
Files 130 130
Lines 3115 3125 +10
Branches 344 344
==========================================
+ Hits 2753 2763 +10
Misses 229 229
Partials 133 133
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
… `LambdaInvocationContextAccessor` - Update all references from `LambdaInvocationContextFactoryAccessor` to `LambdaInvocationContextAccessor`. - Adjust unit tests to use the renamed class in all relevant test methods. - Update DI container to register `LambdaInvocationContextAccessor` as the implementation for `ILambdaInvocationContextAccessor`.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🚀 Pull Request
📋 Summary
Renames
ILambdaHostContexttoILambdaInvocationContextto better reflect its purpose as an invocation-scoped context rather than a host-level context. This change improves API clarity and aligns the naming with the actual lifecycle scope of the context object.Changes include:
ILambdaHostContextinterface toILambdaInvocationContextILambdaHostContextAccessortoILambdaInvocationContextAccessor✅ Checklist
🧪 Related Issues or PRs
N/A
💬 Notes for Reviewers
This is a straightforward rename with no behavioral changes. All references have been updated consistently across the codebase including: