I noticed we seem to have lots of public APIs that accept reference type parameters not marked as nullable but then don't check that they're actually non-null and throw an ArgumentNullException when necessary. We should decide what we're doing and review all public APIs for appropriate argument validation.
e.g. https://github.com/dotnet/aspire/blob/240cde74a83cc5378a90c2b6eeb8d65f43658d80/src/Aspire.Hosting/Extensions/ResourceBuilderExtensions.cs#L92-L98
I noticed we seem to have lots of public APIs that accept reference type parameters not marked as nullable but then don't check that they're actually non-null and throw an
ArgumentNullExceptionwhen necessary. We should decide what we're doing and review all public APIs for appropriate argument validation.e.g. https://github.com/dotnet/aspire/blob/240cde74a83cc5378a90c2b6eeb8d65f43658d80/src/Aspire.Hosting/Extensions/ResourceBuilderExtensions.cs#L92-L98