Skip to content

Conversation

@vb2ae
Copy link
Owner

@vb2ae vb2ae commented Dec 7, 2024

This pull request includes several changes to the vb2ae.ServiceLocator.MSDependencyInjection project, focusing on adding support for null keys, incorporating the Microsoft SBom tool, and updating dependencies. The most important changes are summarized below:

Support for null keys:

Incorporation of Microsoft SBom tool:

Codebase updates:

vb2ae added 2 commits December 7, 2024 06:07
- Updated `dotnet.yml` to install Microsoft SBom tool.
- Added null key test methods in `ServiceLocatorTests.cs`.
- Modified `MSDependencyInjectionServiceLocator.cs` to handle null/empty keys.
- Reformatted project file and added `<GenerateSBOM>` property.
- Added package reference for `Microsoft.Sbom.Targets`.
Modified GetInstance methods in MSDependencyInjectionServiceLocator.cs to use FirstOrDefault for null handling. Added a new test method GetInstance_Generic_WithNullKey_NotRegisterClass in ServiceLocatorTests.cs to verify behavior. Introduced IAmNotUsed interface in vb2ae.ServiceLocator.MSDependencyInjection.Tests.Models.
@vb2ae vb2ae merged commit 335ccaa into master Dec 7, 2024
4 checks passed
@vb2ae vb2ae deleted the sboms branch December 7, 2024 11:41
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.

Add Sbom to nuget package

2 participants