{"id":13629563,"url":"https://github.com/Frederik91/DependencyInjection.SourceGenerator","last_synced_at":"2025-04-17T09:34:44.862Z","repository":{"id":93884246,"uuid":"577469646","full_name":"Frederik91/DependencyInjection.SourceGenerator","owner":"Frederik91","description":"Register services using attributes instead of registering.","archived":false,"fork":false,"pushed_at":"2024-02-19T12:52:45.000Z","size":10679,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-01T22:43:51.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frederik91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-12-12T20:09:48.000Z","updated_at":"2024-01-25T12:17:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"8878a73b-e17b-4c5b-8fa0-cc60fabb8fa5","html_url":"https://github.com/Frederik91/DependencyInjection.SourceGenerator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederik91%2FDependencyInjection.SourceGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederik91%2FDependencyInjection.SourceGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederik91%2FDependencyInjection.SourceGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederik91%2FDependencyInjection.SourceGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frederik91","download_url":"https://codeload.github.com/Frederik91/DependencyInjection.SourceGenerator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223751230,"owners_count":17196590,"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":[],"created_at":"2024-08-01T22:01:13.672Z","updated_at":"2024-11-08T20:31:13.222Z","avatar_url":"https://github.com/Frederik91.png","language":"C#","funding_links":[],"categories":["Do not want to test 112 ( old ISourceGenerator )"],"sub_categories":["1. [ThisAssembly](https://ignatandrei.github.io/RSCG_Examples/v2/docs/ThisAssembly) , in the [EnhancementProject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) category"],"readme":"# DependencyInjection.SourceGenerator\nRegister services using attributes instead of registering in code.\n\n## Usage\nAdd the \"Register\" attribute to the class you want to register. The attribute takes a type and a lifetime. The type is the type you want to register and the lifetime is the lifetime of the service. The lifetime is optional and defaults to Transient.\n\nThis library supports the following dependency injection frameworks, follow the links for more information on how to use them:\n- [Microsoft.Extensions.DependencyInjection](DependencyInjection.SourceGenerator.Microsoft/README.md)\n- [LightInject](DependencyInjection.SourceGenerator.LightInject/README.md)\n\nTo use this library you need to install the source generator package and the contacts package. \nThe source generator package is a development dependency and will not be exposed as a dependency to consumers of your projects, while the contracts package contains the attributes and enums used to configure the generator.\n\n### Microsoft.Extensions.DependencyInjection\n* #### DependencyInjection.SourceGenerator.Microsoft [![NuGet](https://img.shields.io/nuget/vpre/DependencyInjection.SourceGenerator.Microsoft.svg)](https://www.nuget.org/packages/DependencyInjection.SourceGenerator.Microsoft)\n* #### DependencyInjection.SourceGenerator.Microsoft.Contracts [![NuGet](https://img.shields.io/nuget/vpre/DependencyInjection.SourceGenerator.Microsoft.Contracts.svg)](https://www.nuget.org/packages/DependencyInjection.SourceGenerator.Microsoft.Contracts)\n\n### LightInject\n* #### DependencyInjection.SourceGenerator.LightInject [![NuGet](https://img.shields.io/nuget/vpre/DependencyInjection.SourceGenerator.LightInject.svg)](https://www.nuget.org/packages/DependencyInjection.SourceGenerator.LightInject)\n* #### DependencyInjection.SourceGenerator.LightInject.Contracts [![NuGet](https://img.shields.io/nuget/vpre/DependencyInjection.SourceGenerator.LightInject.Contracts.svg)](https://www.nuget.org/packages/DependencyInjection.SourceGenerator.LightInject.Contracts)\n\nBoth contracts packages references the shared contracts package, which contains the attributes and enums used to configure the generator.\n* #### DependencyInjection.SourceGenerator.Contracts [![NuGet](https://img.shields.io/nuget/vpre/DependencyInjection.SourceGenerator.Contracts.svg)](https://www.nuget.org/packages/DependencyInjection.SourceGenerator.Contracts)\n\n## Lifetime\nThe lifetime is an enum with the following values:\n- Transient\n- Scoped\n- Singleton\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFrederik91%2FDependencyInjection.SourceGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFrederik91%2FDependencyInjection.SourceGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFrederik91%2FDependencyInjection.SourceGenerator/lists"}