C# Source Generator to automatically register dependencies in Microsoft Dependency Injection Service Collection
Stars
132
Forks
7
Watchers
132
Open Issues
2
Overall repository health assessment
No package.json found
This might not be a Node.js project
23
commits
7
commits
Merge pull request #10 from ChaseDRedmon/try-keyed-attributes
dadb0eaView on GitHubRename "ServiceKey" to "serviceKey" per review. Update unit and integration tests
72c9a78View on GitHubUpdate unit tests and integration tests. Add methods for testing TryXXX methods, keyed methods and tryaddkeyed methods. Update unit tests to include using Microsoft.Extensions.DependencyInjection.Extensions;
2b08ebcView on GitHubRemove incorrect _ = discard on TryXXX methods in SourceConstants.cs. Renamed Key -> to ServiceKey in SourceConstants.cs. Generator now throws ArgumentException when missing a ServiceKey on required Keyed methods. Add reading constructor argument name and argument value.
09e2312View on GitHubInitial development on TryAdd, AddKeyed, and TryAddKeyed DI methods.
563c694View on GitHubAdd support for registering as interfaces from base implementation, particularly useful when using Fluent Validation
0323a2dView on GitHub