Search posts, tags, users, and pages
Hangfire is a .NET library that makes it really easy to adding background tasks to your .NET app. It supports one-off "fire and forget" tasks, as well as scheduling recurring tasks. On top of that it supports persistence, so all of your tasks will co...
Sam Walpole
@dr_sam_walpole · United Kingdom
👨💻 Fullstack .NET and JavaScript teacher and advocate 👨💻
Markdown supported · ⌘↵ to post
Thiago Loureiro
Hi! nice article! Just one note, there's a "typo" in your code
Should be UseMemoryStorage, correct?
services.AddHangfire(c => c.UserMemoryStorage());
Ah yes, thanks for letting me know. I'll update it now :)
Pavel Biryukov
Nice library! Can I schedule a task to run one time after 15 minutes? Run reccuring and then cancel it after first run?
Hey, If you want to run once after a delay, there is a method for that. I haven't tried it myself, but this documentation might be useful for you :)
docs.hangfire.io/en/latest/background-methods/cal…
Thiago Loureiro
Hi! nice article! Just one note, there's a "typo" in your code
Should be UseMemoryStorage, correct?
services.AddHangfire(c => c.UserMemoryStorage());