{"id":17492948,"url":"https://github.com/chugunov/manyconfig","last_synced_at":"2025-04-10T20:40:44.840Z","repository":{"id":144187977,"uuid":"60354972","full_name":"chugunov/ManyConfig","owner":"chugunov","description":"Helper package for easy configuration.","archived":false,"fork":false,"pushed_at":"2017-02-01T13:14:29.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T18:11:50.492Z","etag":null,"topics":["appsettings","c-sharp","config","configuration","easy"],"latest_commit_sha":null,"homepage":"","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/chugunov.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":"2016-06-03T14:43:32.000Z","updated_at":"2017-02-01T13:12:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf3934dc-6bc9-4b7c-ae8e-828e9c6c0dad","html_url":"https://github.com/chugunov/ManyConfig","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/chugunov%2FManyConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chugunov%2FManyConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chugunov%2FManyConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chugunov%2FManyConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chugunov","download_url":"https://codeload.github.com/chugunov/ManyConfig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248292411,"owners_count":21079430,"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":["appsettings","c-sharp","config","configuration","easy"],"created_at":"2024-10-19T11:08:14.133Z","updated_at":"2025-04-10T20:40:44.831Z","avatar_url":"https://github.com/chugunov.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ManyConfig\n\n[![NuGet version](https://badge.fury.io/nu/manyconfig.svg)](https://badge.fury.io/nu/manyconfig)\n[![Build status](https://ci.appveyor.com/api/projects/status/yy63ivdnny35ra01?svg=true)](https://ci.appveyor.com/project/chugunov/manyconfig)\n\nA helper package for easy configuration\n\n## Usage\n\nAdd `ManyConfig` attribute to your configuration properties and specify DefaultValue for them.\n\n```csharp\npublic class ElasticConfig\n{\n    [ManyConfig(Key = \"elasticsearch-connection-string\",\n        DefaultValue = \"http://localhost:9200\")]\n    public string ConnectionString { get; set; }\n\n    [ManyConfig(Key = \"elasticsearch-index\", \n        DefaultValue = \"comments\")]\n    public string IndexName { get; set; }\n}\n```\n\nIn `app.config` you can override your DefaultValue property by `Key` field:\n\n```xml\n\u003cappSettings\u003e\n  \u003cadd key=\"elasticsearch-connection-string\" value=\"http://127.0.0.1:9200\" /\u003e\n\u003c/appSettings\u003e\n```\n\nThen you can use configuration:\n\n```csharp\nElasticConfig elasticConfiguration = ConfigHandler.Get\u003cElasticConfig\u003e();\n```\n## TODO\n\n* Covering by test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchugunov%2Fmanyconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchugunov%2Fmanyconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchugunov%2Fmanyconfig/lists"}