https://github.com/hannesbarbez/barbezdoteu.extensions.hosting
Misc. extensions to Microsoft.Extensions.Hosting, such as ScopedHostedService.
https://github.com/hannesbarbez/barbezdoteu.extensions.hosting
backgroundservice barbez barbezdoteu garbage-collection scoped scopedhostedservice
Last synced: about 2 months ago
JSON representation
Misc. extensions to Microsoft.Extensions.Hosting, such as ScopedHostedService.
- Host: GitHub
- URL: https://github.com/hannesbarbez/barbezdoteu.extensions.hosting
- Owner: hannesbarbez
- License: mit
- Created: 2023-01-29T19:49:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-13T16:55:07.000Z (6 months ago)
- Last Synced: 2025-02-14T04:18:36.005Z (4 months ago)
- Topics: backgroundservice, barbez, barbezdoteu, garbage-collection, scoped, scopedhostedservice
- Language: C#
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BarbezDotEu.Extensions.Hosting
Misc. extensions to Microsoft.Extensions.Hosting, such as ScopedHostedService.## ScopedHostedService
ScopedHostedService is an IHostedService implementation designed to support regular scoped execution of work using a Timer.The main benefit is a better garbage collection in some applications compared to the e.g. the native .NET BackgroundService
(which seems designed for long running tasks and may enjoy less favorable garbage collection than scoped work, in some cases).If your app requires many iterations of smaller jobs, try using this ScopedHostedService to avoid the excessive memory consumption seen in some other implementations of IHostedService.