Install-Package TaskBucket -Version 22.214.171.124-prerelease
dotnet add package TaskBucket --version 126.96.36.199-prerelease
<PackageReference Include="TaskBucket" Version="188.8.131.52-prerelease" />
paket add TaskBucket --version 184.108.40.206-prerelease
#r "nuget: TaskBucket, 220.127.116.11-prerelease"
// Install TaskBucket as a Cake Addin #addin nuget:?package=TaskBucket&version=18.104.22.168-prerelease&prerelease // Install TaskBucket as a Cake Tool #tool nuget:?package=TaskBucket&version=22.214.171.124-prerelease&prerelease
Hasle free asynchronous background tasks
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
Major refactor of underlying components, AspNet now handles the lifetime of the Scheduler. Thus the Scheduler is started and stoped by AspNet, meaning that if your background tasks are still running app shutdown will be postponed.
REMOVED | InstanceTasks, all object instances should be retrieved by DI so I removed this function.
REMOVED | TaskBucketStatus, I may replace this in the future with a debugging assistant. But for now it is gone for good.
ADDED | Scheduler allowing for better control over tasks and integration into AspNet
ADDED | TaskPriority [Low, Normal, High, Critical] these are working, but eventually will play a role in Cron Jobs.
ADDED | UseTaskBucket method, this can be used in Startup.Configure to easily add/start jobs as your App starts. Again this will be more powerful when Cron jobs are added.
CHANGED | Default thread pool size from 10 to Logical Cores available to your App as reported by .Net
IMPROVED | TaskBucketAwaiter Async methods, these methods now use Task.Delay instead of Thread.Sleep