{"id":22384690,"url":"https://github.com/stofte/azurefunctions-simpledependencyinjection","last_synced_at":"2026-04-15T22:36:05.362Z","repository":{"id":144137157,"uuid":"142853145","full_name":"stofte/azurefunctions-simpledependencyinjection","owner":"stofte","description":"Basic Dependency Injection for Azure Functions v2","archived":false,"fork":false,"pushed_at":"2019-01-21T14:35:43.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T18:08:57.674Z","etag":null,"topics":["azure","azure-functions","dependency-injection"],"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/stofte.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":"2018-07-30T09:18:25.000Z","updated_at":"2019-01-21T14:35:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1debc12-fd96-4fa5-a6a8-a1950828d41e","html_url":"https://github.com/stofte/azurefunctions-simpledependencyinjection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stofte/azurefunctions-simpledependencyinjection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofte%2Fazurefunctions-simpledependencyinjection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofte%2Fazurefunctions-simpledependencyinjection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofte%2Fazurefunctions-simpledependencyinjection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofte%2Fazurefunctions-simpledependencyinjection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stofte","download_url":"https://codeload.github.com/stofte/azurefunctions-simpledependencyinjection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofte%2Fazurefunctions-simpledependencyinjection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271732361,"owners_count":24811309,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["azure","azure-functions","dependency-injection"],"created_at":"2024-12-05T01:18:51.605Z","updated_at":"2026-04-15T22:36:00.322Z","avatar_url":"https://github.com/stofte.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿Azure Functions v2 Simple Dependency Injection\n==============================================\n\n[Note: v2 function runtimes only](https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions)\n\nPackaged code based on [Boris Wilhelms code](https://blog.wille-zone.de/post/azure-functions-proper-dependency-injection/). A basic configuration interface has been added to enable packaging. The code expects a single implementation of this interface. The container configuration is shared by all functions in the app. This package requires `3.0.3` of the `Microsoft.Azure.WebJobs` package.\n\nConfiguration example:\n\n    using AzureFunctions.Extensions.SimpleDependencyInjection;\n\n    namespace MyFunctionApp \n    {\n        public class Startup : IContainerConfigurator\n        {\n            // IContainerConfigurator interface\n            public void Configure(IServiceCollection services)\n            {\n                // supports basic registrations+scoped (as in article)\n                services.AddSingleton(new FooService());\n            }\n        }\n    }   \n\nUsage example:\n\n    public static class MyFunction\n    {\n        [FunctionName(\"MyFunction\")]\n        public static async Task Run(\n            [TimerTrigger(\"%myfunctimer%\")] TimerInfo myTimer,\n            [Inject] FooService fooSvc\n            )\n        {\n    \n        }\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstofte%2Fazurefunctions-simpledependencyinjection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstofte%2Fazurefunctions-simpledependencyinjection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstofte%2Fazurefunctions-simpledependencyinjection/lists"}