{"id":19654148,"url":"https://github.com/aimenux/workerservicedemo","last_synced_at":"2026-06-10T18:31:07.122Z","repository":{"id":116561327,"uuid":"339882964","full_name":"aimenux/WorkerServiceDemo","owner":"aimenux","description":"Using worker service template in order to create long-running cross-platform services","archived":false,"fork":false,"pushed_at":"2025-06-03T21:29:00.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T18:26:25.532Z","etag":null,"topics":["net80","windows-service","worker-service"],"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":"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-02-17T23:28:52.000Z","updated_at":"2025-06-03T21:29:01.000Z","dependencies_parsed_at":"2025-02-27T01:46:26.170Z","dependency_job_id":"c45e458e-d4a9-48c7-81d7-7b8afe67e2df","html_url":"https://github.com/aimenux/WorkerServiceDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aimenux/WorkerServiceDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWorkerServiceDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWorkerServiceDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWorkerServiceDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWorkerServiceDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimenux","download_url":"https://codeload.github.com/aimenux/WorkerServiceDemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWorkerServiceDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34165482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","windows-service","worker-service"],"created_at":"2024-11-11T15:16:27.695Z","updated_at":"2026-06-10T18:31:07.101Z","avatar_url":"https://github.com/aimenux.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![.NET](https://github.com/aimenux/WorkerServiceDemo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/aimenux/WorkerServiceDemo/actions/workflows/ci.yml)\n\n# WorkerServiceDemo\n```\nUsing worker service template in order to create long-running cross-platform services\n```\n\n\u003e In this repo, i m building a long running background service based on [worker service template](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-5.0\u0026tabs=visual-studio#worker-service-template).\n\u003e\n\u003e Worker services are a great way to create cross-plateform services that can be deployed on :\n\u003e\n\u003e\u003e :pushpin: windows\n\u003e\u003e\n\u003e\u003e :pushpin: linux\n\u003e\u003e\n\u003e\u003e :pushpin: docker\n\u003e\u003e\n\u003e\u003e :pushpin: [azure container instance](https://devblogs.microsoft.com/aspnet/dotnet-core-workers-in-azure-container-instances/)\n\u003e\n\u003e In this repo, the worker displays features from configuration file based on 3 strategies :\n\u003e\n\u003e :one: `ConfigurationOptionsService` : static reading of configuration features\n\u003e\n\u003e :two: `ConfigurationOptionsSnapshotService` : dynamic reading of configuration features\n\u003e\n\u003e :three: `ConfigurationOptionsMonitorService` : dynamic reading of configuration features\n\u003e\n\u003e In order to deploy the worker as a windows service, type the following commands in your terminal :\n\u003e\n\u003e\u003e :white_check_mark: Build in release mode : `dotnet build -c release`\n\u003e\u003e\n\u003e\u003e :white_check_mark: Publish to some folder : `dotnet publish -o [PATH-TO-FOLDER]`\n\u003e\u003e\n\u003e\u003e :white_check_mark: Create windows service : `sc create [SERVICE-NAME] binPath=[PATH-TO-FOLDER]\\[App.exe]`\n\u003e\u003e\n\u003e\u003e :white_check_mark: Delete windows service : `sc delete [SERVICE-NAME]`\n\u003e\n\n**`Tools`** : net 8.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fworkerservicedemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimenux%2Fworkerservicedemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fworkerservicedemo/lists"}