Skip to content

fix: forward useServiceUrl in the shorter TryAddAwsService overload - #66

Merged
Blind-Striker merged 1 commit into
review/native-aot-existing-consumersfrom
aot/issue-63-tryadd-use-service-url
Oct 23, 2026
Merged

Blind-Striker merged 1 commit into
review/native-aot-existing-consumersfrom
aot/issue-63-tryadd-use-service-url

Conversation

@Blind-Striker

@Blind-Striker Blind-Striker commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Stack (review bottom-up, merge as one stack): #62 base, #66 the #63 fix, #67 Native AOT test lane, #68 static-factory generic path, #70 slim generator, #71 public docs, #72 internal docs and 3.0.0, #73 reflection-free test, #74 package consumer in CI, #75 convention clean-up, #76 service catalog refresh.

Goal of the stack: 3.0.0, where existing consumers upgrade without code changes, both packages support Native AOT on net10.0/net11.0, and the libraries use no runtime reflection for types the compiler can see (a JIT-only fallback covers the rest).

This PR

Fixes #63: TryAddAwsService<TService>(lifetime, useServiceUrl) dropped useServiceUrl. It now forwards it like every other overload. This is a behaviour change for callers who passed true (they now get ServiceURL), recorded in the changelog.

Verification

New theory TryAddAwsService_Should_Forward_UseServiceUrl_To_Session: the true row fails on the base and passes after. Extensions 62 x2, Core 100 x3.

@Blind-Striker
Blind-Striker added this pull request to stack #69 October 23, 2026 11:12
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

TryAddAwsService<TService>(lifetime, useServiceUrl) called the AWSOptions
overload without useServiceUrl, so the flag was always false. Forward it
like every other registration overload does.

Fixes #63
@Blind-Striker
Blind-Striker force-pushed the aot/issue-63-tryadd-use-service-url branch from 3cf4f81 to 0c421fe Compare October 23, 2026 20:24
@Blind-Striker
Blind-Striker marked this pull request as ready for review October 23, 2026 21:54
@Blind-Striker
Blind-Striker merged commit 49573c2 into master Oct 23, 2026
13 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.

TryAddAwsService<TService>(lifetime, useServiceUrl) ignores useServiceUrl

1 participant