-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Move to granular opt-in for interceptors preview #35024
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
b4dd62f to
f966833
Compare
f966833 to
7c19e60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
|
|
||
| VerifyConfigBindingGeneratorIsUsed(asset, isEnabled); | ||
| VerifyInterceptorsFeatureEnabled(asset, isEnabled); | ||
| VerifyInterceptorsFeatureEnabled(asset, isEnabled, "Microsoft.Extensions.Configuration.Binder.SourceGeneration"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: these Verify* method names read like they (always) assert that the generator(s) are used/enabled. Consider using names that indicate that the expected behavior depends on whether the generator is enabled (e.g VerifyInterceptorsFeatureSettingIsCorrect).
src/WebSdk/ProjectSystem/Targets/Microsoft.NET.Sdk.Web.ProjectSystem.targets
Outdated
Show resolved
Hide resolved
|
Merging. This is not a breaking change and doesn't introduce new behavior. |
No description provided.