{"id":19654155,"url":"https://github.com/aimenux/optionspatterndemo","last_synced_at":"2026-05-15T00:08:01.508Z","repository":{"id":116560476,"uuid":"189428973","full_name":"aimenux/OptionsPatternDemo","owner":"aimenux","description":"Using options pattern in web api","archived":false,"fork":false,"pushed_at":"2024-06-05T11:07:13.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T00:24:38.482Z","etag":null,"topics":["net80","options-pattern","web-api"],"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/aimenux.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":"2019-05-30T14:32:14.000Z","updated_at":"2024-06-05T11:07:17.000Z","dependencies_parsed_at":"2024-06-04T17:56:53.867Z","dependency_job_id":"0c4a210d-3ef9-47db-9f17-ce8881fee049","html_url":"https://github.com/aimenux/OptionsPatternDemo","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/aimenux%2FOptionsPatternDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FOptionsPatternDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FOptionsPatternDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FOptionsPatternDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimenux","download_url":"https://codeload.github.com/aimenux/OptionsPatternDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240962706,"owners_count":19885520,"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":["net80","options-pattern","web-api"],"created_at":"2024-11-11T15:16:28.580Z","updated_at":"2026-05-15T00:08:01.451Z","avatar_url":"https://github.com/aimenux.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![.NET](https://github.com/aimenux/ReloadConfigChangesDemo/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/aimenux/ReloadConfigChangesDemo/actions/workflows/ci.yml)\n\n# OptionsPatternDemo\n```\nUsing options pattern in web api\n```\n\nIn this demo, i m using [OptionsPattern](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-8.0#options-interfaces) (`IOptions`, `IOptionsMonitor` and `IOptionsSnapshot`) to read settings from configuration file.\n\nThe strategy is enabled by setting the choice query parameter to :\n- `ConfigurationOptionsService` : for reading values once at the startup (reload configuration only after startup)\n- `ConfigurationOptionsMonitorService` : for reading always new values (reload configuration in every usage even in the same request)\n- `ConfigurationOptionsSnapshotService` : for reading new values for each new request (reload configuration in every new request)\n\n**`Tools`** : net 8.0, integration-tests","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Foptionspatterndemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimenux%2Foptionspatterndemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Foptionspatterndemo/lists"}