
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
MZNetwork.AutoDependency.CodeGen
Advanced tools
Helps to eliminate simple boilerplate code to set up dependency injection.
MZNetwork.AutoDependency.CodeGen
nuget to your project..csproj
file:<ItemGroup>
<!-- Add this to an existing or new ItemGroup. -->
<CompilerVisibleProperty Include="RootNamespace" />
<!-- [... Other lines go here ...]
</ItemGroup>
Add [Inject]
to any class you want to add as a dependency:
Inject(scopeType=GeneratedDependencytype.Singleton, implementsType=typeof(IInterface), key="KeyedDependencyName")
GeneratedDependencyType
is an enum with values: Scoped
(default), Transient
, Singleton
In the AppBuilder for the dotnet app call AddGeneratedDependencies()
. This will add the dependencies to the IServiceCollection.
This is still under active development so I may modify the system further if other requirements arise.
FAQs
Package Description
We found that mznetwork.autodependency.codegen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.