{"id":16101514,"url":"https://github.com/mendhak/dotnet-core-dependency-injection-connection-string","last_synced_at":"2025-04-06T00:27:47.450Z","repository":{"id":141194649,"uuid":"381512944","full_name":"mendhak/dotnet-core-dependency-injection-connection-string","owner":"mendhak","description":"Sample repo - inject a different connection string based on URL path","archived":false,"fork":false,"pushed_at":"2021-06-30T06:58:32.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:38:48.166Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mendhak.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":"2021-06-29T22:32:19.000Z","updated_at":"2023-09-08T18:23:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"e67df448-f851-4124-8dc4-8a98cba5652f","html_url":"https://github.com/mendhak/dotnet-core-dependency-injection-connection-string","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdotnet-core-dependency-injection-connection-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdotnet-core-dependency-injection-connection-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdotnet-core-dependency-injection-connection-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdotnet-core-dependency-injection-connection-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mendhak","download_url":"https://codeload.github.com/mendhak/dotnet-core-dependency-injection-connection-string/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419638,"owners_count":20936009,"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-10-09T18:50:11.407Z","updated_at":"2025-04-06T00:27:47.436Z","avatar_url":"https://github.com/mendhak.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n```\ndotnet run\n```\n\nThen, browse to \n\nhttps://localhost:5001/v1/WeatherForecast\n\nand see the console output\n\nThen browse to\n \nhttps://localhost:5001/v2/BetterWeatherForecast\n\nAnd see the console output\n\nGo to [Startup.cs](Startup.cs#L41) to see how it's done. \n\nLook at the [Helper Resolver](Helper/HelperResolverService.cs), note the IHttpContextAccessor being injected. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendhak%2Fdotnet-core-dependency-injection-connection-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmendhak%2Fdotnet-core-dependency-injection-connection-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendhak%2Fdotnet-core-dependency-injection-connection-string/lists"}