Skip to content

Refactor PathTargetValue logic, update namespaces - #1

Merged
nilvon9wo merged 3 commits into
masterfrom
enhancement/path-target-value-cleanup
Sep 7, 2026
Merged

nilvon9wo merged 3 commits into
masterfrom
enhancement/path-target-value-cleanup

Conversation

@nilvon9wo

Copy link
Copy Markdown
Owner

Refactored PathTargetValue into extensible record types implementing IPathTargetValue. Updated all usages and related logic to use new interface and records. Moved and renamed namespaces for better separation of concerns. Updated using directives, provider lookups, and test code. Replaced .Single()/.SingleOrDefault() with .First()/.FirstOrDefault() in tests. Ensured consistent use of .ConfigureAwait. Updated solution file and added testEnvironments.json. Minor naming refactors. No breaking public API changes; significant internal improvements.

Refactored PathTargetValue into extensible record types implementing IPathTargetValue. Updated all usages and related logic to use new interface and records. Moved and renamed namespaces for better separation of concerns. Updated using directives, provider lookups, and test code. Replaced .Single()/.SingleOrDefault() with .First()/.FirstOrDefault() in tests. Ensured consistent use of .ConfigureAwait. Updated solution file and added testEnvironments.json. Minor naming refactors. No breaking public API changes; significant internal improvements.
Updated all usages of LookupKey.Get(typeof(T)) and FlavouredLookupKey.Get(typeof(T), ...) to the new generic methods LookupKey.Get<T>() and FlavouredLookupKey.Get<T>(...). Improved type safety and readability in documentation and code samples across provider-lookups.md, provider-variants.md, generating-records.md, getting-started.md, and shared-ancestors.md.
PersistenceGatewayTest now implements IDisposable to reset DeferredInserter for test isolation. Added a sanity check in Flush_AfterDeferredWithExcludePrimaryIds to ensure DeferredInserter is empty. Switched LookupKey to use ConcurrentDictionary for thread-safe access and added missing using directives.
@nilvon9wo
nilvon9wo merged commit c5b459d into master Sep 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant