Update rdg013.md
parent
1a604d0b22
commit
7ccf4d48d6
|
@ -31,4 +31,4 @@ Resolve the target parameter as either a keyed or non-keyed service.
|
|||
:::code language="csharp" source="~/../AspNetCore.Docs.Samples/fundamentals/aot/diagnostics/Rdg13/Program.cs" id="snippet_1f" highlight="10,15,20":::
|
||||
## When to suppress warnings
|
||||
|
||||
This warning should ***not*** be suppressed. Suppressing the warning leads to a [NotSupportedException](/dotnet/api/system.notsupportedexception) runtime exception `The FromKeyedServicesAttribute is not supported on parameters that are also annotated with IFromServiceMetadata.`.
|
||||
This warning should ***not*** be suppressed. Suppressing the warning leads to a [NotSupportedException](/dotnet/api/system.notsupportedexception) runtime exception `The FromKeyedServicesAttribute is not supported on parameters that are also annotated with IFromServiceMetadata.`
|
||||
|
|
Loading…
Reference in New Issue