{"id":25564949,"url":"https://github.com/maxchistt/injectableservices","last_synced_at":"2025-06-10T12:08:37.540Z","repository":{"id":207524139,"uuid":"719453172","full_name":"maxchistt/InjectableServices","owner":"maxchistt","description":"NuGet package for creating injectable services for DependencyInjection","archived":false,"fork":false,"pushed_at":"2023-11-16T08:43:38.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-24T23:43:14.654Z","etag":null,"topics":["dependency-injection","injectable","injectable-service","injection","services"],"latest_commit_sha":null,"homepage":"https://nuget.org/packages/InjectableServices","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/maxchistt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-16T07:43:40.000Z","updated_at":"2023-11-16T08:54:37.000Z","dependencies_parsed_at":"2023-11-16T09:25:47.676Z","dependency_job_id":"70a412fc-9179-4c0c-90f8-4d5728a76f3b","html_url":"https://github.com/maxchistt/InjectableServices","commit_stats":null,"previous_names":["maxchistt/injectableservices"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchistt%2FInjectableServices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchistt%2FInjectableServices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchistt%2FInjectableServices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchistt%2FInjectableServices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxchistt","download_url":"https://codeload.github.com/maxchistt/InjectableServices/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchistt%2FInjectableServices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259072782,"owners_count":22801081,"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":["dependency-injection","injectable","injectable-service","injection","services"],"created_at":"2025-02-20T22:00:08.685Z","updated_at":"2025-06-10T12:08:37.497Z","avatar_url":"https://github.com/maxchistt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InjectableServices\n\n1. Add `Injectable` attribute to your service\n\n   ```cs\n   using InjectableServices;\n\n   // The attribute\n   [Injectable(ServiceLifetime.Scoped)]\n   public class ItemService : IItemService\n   {\n       private DataContext Context { get; }\n\n       public ItemService(DataContext dataContext)\n       {\n           Context = dataContext;\n       }\n\n       public Item[] GetAllItems()\n       {\n           return Context.Items.ToArray();\n       }\n   }\n   ```\n\n1. Easily register injectable services\n\n   ```cs\n   using InjectableServices;\n\n   var builder = WebApplication.CreateBuilder(args);\n\n   // The services registration\n   builder.Services.AddInjectableServices();\n\n   var app = builder.Build();\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxchistt%2Finjectableservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxchistt%2Finjectableservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxchistt%2Finjectableservices/lists"}