{"id":15411693,"url":"https://github.com/tbertuzzi/dotnetdynamicinjector","last_synced_at":"2025-04-19T04:19:17.435Z","repository":{"id":47438453,"uuid":"275219580","full_name":"TBertuzzi/DotNetDynamicInjector","owner":"TBertuzzi","description":"💉 Dynamically reference external dlls without the need to add them to the project. Leave your project with low dependency and allowing specific dlls according to your business rule or database parameters.","archived":false,"fork":false,"pushed_at":"2024-04-18T13:15:20.000Z","size":44,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-14T14:18:01.425Z","etag":null,"topics":["csharp","dependency-injection","microsoft","net","netcore","netstandard"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TBertuzzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-26T18:13:14.000Z","updated_at":"2024-12-13T06:11:11.000Z","dependencies_parsed_at":"2024-10-20T14:34:38.148Z","dependency_job_id":null,"html_url":"https://github.com/TBertuzzi/DotNetDynamicInjector","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":"0.12121212121212122","last_synced_commit":"242c94da329431a207982763d5e072c989ae6e88"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBertuzzi%2FDotNetDynamicInjector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBertuzzi%2FDotNetDynamicInjector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBertuzzi%2FDotNetDynamicInjector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBertuzzi%2FDotNetDynamicInjector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TBertuzzi","download_url":"https://codeload.github.com/TBertuzzi/DotNetDynamicInjector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249191311,"owners_count":21227543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dependency-injection","microsoft","net","netcore","netstandard"],"created_at":"2024-10-01T16:49:54.604Z","updated_at":"2025-04-19T04:19:17.399Z","avatar_url":"https://github.com/TBertuzzi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotNet.DynamicInjector\n\nDynamic dependency injector for external project DLLs\n\nDynamically reference external dlls without the need to add them to the project. Leave your project with low dependency and allowing specific dlls according to your business rule or database parameters.\n\n###### This is the component, works on .NET Core and.NET Framework\n\n**Info**\n\n|Code Quality|Build|Nuget|Contributors|\n| ------------------- | ------------------- | ------------------- | ------------------- |\n|[![Codacy Badge](https://api.codacy.com/project/badge/Grade/21185ec0f751450fb6b427bc309281a6)](https://app.codacy.com/manual/TBertuzzi/DotNetDynamicInjector?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=TBertuzzi/DotNetDynamicInjector\u0026utm_campaign=Badge_Grade_Settings)|![Build](https://github.com/TBertuzzi/DotNetDynamicInjector/workflows/Build/badge.svg)|[![NuGet](https://buildstats.info/nuget/DotNetDynamicInjector)](https://www.nuget.org/packages/DotNetDynamicInjector/)|[![GitHub contributors](https://img.shields.io/github/contributors/TBertuzzi/DotNetDynamicInjector.svg)](https://github.com/TBertuzzi/DotNetDynamicInjector/graphs/contributors)|\n\n\n**Platform Support**\n\nDotNet.DynamicInjector is a .NET Standard 2.0 library.\n\n**Using DynamicInjector**\n\n\n**The dlls that should be referenced by default must be in the compiled project folder**\n\nUse the service configuration in the startup of your ASP.NET core project\n\n```csharp\n\nservices.RegisterDynamicDependencies(ioCConfiguration);\n\n```\n\nIoCConfiguration contains the configuration of your dependency injection. It is possible to specify only the namespaces you want to reference, ignoring others in the project\n\n\n```csharp\n\nvar ioCConfiguration = new IoCConfiguration()\n{\n   AllowedInterfaceNamespaces = \n       new List\u003cstring\u003e {\"Mynamespance1\", \"Mynamespance2\"}\n};\n\n```\n\nIoCRole configures the dll and type of dependency you want to automatically inject\n\n```csharp\n\nvar role = new IoCRole\n {\n     Dll = \"MyProject.dll\", //DLL name\n     Implementation = \"My Implementation\", // Implementation name, can be used for a control if you use several projects and wanted to separate them\n     Priority = 1, // Priority that the dll should be loaded\n     LifeTime = LifeTime.SCOPED, // Lifetime of your addiction injection\n    Name = \"My client business rule x\" //Dependency name. It is used only for identification\n  };\n            \n    ioCConfiguration.Roles.Add(role);\n\n```\n\n\nSamples coming soon ..\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbertuzzi%2Fdotnetdynamicinjector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbertuzzi%2Fdotnetdynamicinjector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbertuzzi%2Fdotnetdynamicinjector/lists"}