{"id":19175029,"url":"https://github.com/losttech/settings","last_synced_at":"2025-06-21T13:36:16.989Z","repository":{"id":50467636,"uuid":"86278956","full_name":"losttech/Settings","owner":"losttech","description":"App settings library, that supports data binding and asynchronous save. bindable app settings wrapper, which supports autosave","archived":false,"fork":false,"pushed_at":"2022-08-05T18:00:09.000Z","size":36,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T00:44:58.905Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/losttech.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}},"created_at":"2017-03-27T01:42:25.000Z","updated_at":"2022-07-29T10:45:33.000Z","dependencies_parsed_at":"2022-08-19T14:01:26.160Z","dependency_job_id":null,"html_url":"https://github.com/losttech/Settings","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/losttech/Settings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losttech%2FSettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losttech%2FSettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losttech%2FSettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losttech%2FSettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/losttech","download_url":"https://codeload.github.com/losttech/Settings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losttech%2FSettings/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261129922,"owners_count":23113911,"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-11-09T10:20:32.248Z","updated_at":"2025-06-21T13:36:11.976Z","avatar_url":"https://github.com/losttech.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NuGet Package](https://img.shields.io/nuget/v/LostTech.App.Settings)](https://www.nuget.org/packages/LostTech.App.Settings/)\n\n## Quickstart\n\n1. Implement `ICopyable` from `LostTech.App.DataBinding` on your settings objects\n(required to create settings snapshot which can be saved while user continues to modify settings).\n\n2. Install [XmlSettings NuGet package](https://www.nuget.org/packages/LostTech.App.XmlSettings/) (easy serialization into XML).\n\n3. Choose a folder to store your settings and call `XmlSettings.Create(folder)`.\n\n4. For each settings set (e.g. a group of settings), call `cfg = await settings.LoadOrCreate\u003cT\u003e(xmlFileName)`.\nHandle errors here (abrupt shutdown or app crash could have corrupted the settings file).\n\n5. Call `cfg.ScheduleSave()` to save the settings set asynchronously.\n\n6. (optional) Set `cfg.Autosave = true` to enable asynchronous autosave.\nYour settings must implement [INotifyPropertyChanged](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged)\nor [INotifyCollectionChanged](https://docs.microsoft.com/en-us/dotnet/api/system.collections.specialized.inotifycollectionchanged).\nYou **must** implement these interfaces for any nested objects if you have a hierarchy.\n\n6. When the app is getting closed, call `DisposeAsync` for every set of settings.\nYou **MUST** wait for it to finish before your app closes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosttech%2Fsettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flosttech%2Fsettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosttech%2Fsettings/lists"}