You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
FromRequestModelBinder and FromRequestModelBinderProvider are marked [RequiresUnreferencedCode] and [RequiresDynamicCode], so a trimmed or NativeAOT application that constructs them gets the warning at its own call site. [FromRequest] binding is part of MVC, which a trimmed publish turns off with CratisArcControllersSupport. (#3680)
AddIdentityProvider<TProvider>() and AddIdentityProvider(Type) now declare that they need the provider's public constructors, so registering a provider with AddIdentityProvider<MyProvider>() is safe to trim. AddIdentityProvider(ITypes) is marked [RequiresUnreferencedCode] because it finds the provider at runtime. (part of #3675)
Fixed
A concept rule from BaseValidator<T>.RuleFor no longer looks up the concept's Value property by name, so trimming cannot remove it. (part of #3674)