{"id":16286741,"url":"https://github.com/pierocastillo/aurautilities","last_synced_at":"2025-09-25T12:29:13.343Z","repository":{"id":45124184,"uuid":"345712143","full_name":"PieroCastillo/AuraUtilities","owner":"PieroCastillo","description":"A Cross-Platform Utilities Collection for .Net Apps","archived":false,"fork":false,"pushed_at":"2022-01-06T22:28:20.000Z","size":237,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-13T21:47:56.213Z","etag":null,"topics":["app","application","bin","cross-platform","net","settings","wpf"],"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/PieroCastillo.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":"2021-03-08T16:00:53.000Z","updated_at":"2023-01-20T20:27:35.000Z","dependencies_parsed_at":"2022-09-02T23:10:20.658Z","dependency_job_id":null,"html_url":"https://github.com/PieroCastillo/AuraUtilities","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/PieroCastillo%2FAuraUtilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PieroCastillo%2FAuraUtilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PieroCastillo%2FAuraUtilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PieroCastillo%2FAuraUtilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PieroCastillo","download_url":"https://codeload.github.com/PieroCastillo/AuraUtilities/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244538601,"owners_count":20468748,"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":["app","application","bin","cross-platform","net","settings","wpf"],"created_at":"2024-10-10T19:43:40.863Z","updated_at":"2025-09-25T12:29:13.279Z","avatar_url":"https://github.com/PieroCastillo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AuraUtilities\nA Cross-Platform Utilities Collection for .Net Apps\n\nNow available in Nuget!\n\n```cmd\ndotnet add package AuraUtilities --version 0.1.0\n```\n\n## Basic Utilities for .Net Apps availables:\n\n### Locator\n```c#\n//on startup\nLocator.Instance.RegisterService\u003cSystemInfoModel\u003e(new SystemInfoModel());\n\n//in another context\nSystemInfoModel? sys_info = Locator.Instance.GetService\u003cSystemInfoModel\u003e();\n```\n### SettingsProvider\n\n```c#\n//on app startup\nvar provider = new SettingsProvider();\nApp.Current.Settings = provider.Load\u003cAppSettings\u003e();\n\n//important: the objects in properties must be serializables, or the lib will throw an error, I recommend store the object's string representation(Color = \"#FFFFFF\")\n[Serializable]\npublic class AppSettings : Settings { }\n\n//on app shutdown\nvar provider = new SettingsProvider();\nprovider.Save(App.Current.Settings);\n```\n### LogsService\n```c#\n//on app startup, if you use \"null\" the Logger stores the logs in the default temp directory, or you can custom another directory too.\nLogger.Start(null);\n\n//in another context\nLogger.WriteLine(\"message\", MessageType.Warning); //the MessageType param is optional, the default value is \"MessageType.Info\"\nLogger.Assert(condition == true,\"message\", MessageType.Warning); //the same but with a condition\n\n//Also support Async\nawait Logger.WriteLineAsync(\"message\", MessageType.Warning);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierocastillo%2Faurautilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpierocastillo%2Faurautilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierocastillo%2Faurautilities/lists"}