Skip to content

Misc. extensions to Microsoft.Extensions.Hosting, such as ScopedHostedService.

License

Notifications You must be signed in to change notification settings

hannesbarbez/BarbezDotEu.Extensions.Hosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Misc. extensions to Microsoft.Extensions.Hosting, such as ScopedHostedService.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages