https://aspnetboilerplate.com/Pages/Documents/Background-Jobs-And-Workers
Thursday, 20 June 2024
JOBS in C#
Types of Jobs
Fire-and-Forget Jobs
Fire-and-forget jobs are executed only once and almost immediately after creation.
var jobId = BackgroundJob.Enqueue( () => Console.WriteLine("Fire-and-forget!"));
Delayed Jobs
Delayed jobs are executed only once too, but not immediately, after a certain time interval.
var jobId = BackgroundJob.Schedule( () => Console.WriteLine("Delayed!"), TimeSpan.FromDays(7));
Recurring Jobs
Recurring jobs fire many times on the specified CRON schedule.
RecurringJob.AddOrUpdate( "myrecurringjob", () => Console.WriteLine("Recurring!"), Cron.Daily);
Continuations
Continuations are executed when its parent job has been finished.
BackgroundJob.ContinueJobWith( jobId, () => Console.WriteLine("Continuation!"));
Batches
Batch is a group of background jobs that is created atomically and considered as a single entity.
var batchId = BatchJob.StartNew(x =>
{
x.Enqueue(() => Console.WriteLine("Job 1"));
x.Enqueue(() => Console.WriteLine("Job 2"));
});Batch Continuations
Batch continuation is fired when all background jobs in a parent batch finished.
BatchJob.ContinueBatchWith(batchId, x =>
{
x.Enqueue(() => Console.WriteLine("Last Job"));
});Tuesday, 18 June 2024
Monday, 17 June 2024
must c sites
Using Background Tasks with Hosted Services in .NET Core – andrewhalil.com
https://www.flutterclutter.dev/flutter/troubleshooting/widget-overflowed-by-pixels/2020/461/
Using Background Tasks with Hosted Services in .NET Core – andrewhalil.com
Wednesday, 5 June 2024
Sql Learn
SQL Masters everday Practice sites.
https://datalemur.com/questions
https://sqlbolt.com/
https://www.sqlteaching.com/
quotation
“You’ve gotta dance like there’s nobody watching, Love like you’ll never be hurt, Sing like there’s nobody listening, And live like it’s heaven on earth.”
design patterns
https://www.telerik.com/blogs/asp-net-core-basics-organizing-projects-architectural-patterns
junior devops engnr
Position Overview: We are a growing start up seeking a Junior Azure DevOps Engineer with 2 to 3 years of experience to support our Azure...
-
D:\A-MyProjects2024-2025\ReactNative2025\BookRental\android\app\build\outputs\apk\debug path of apk To build an Android app using Capacitor...
-
👉 When your ExceptionHandlingMiddleware tries to resolve a scoped service directly from the app root container (which is NOT allowed)....