Background jobs in ASP.NET Core made easy with Hangfire

added by DotNetKicks
12/26/2018 2:07:36 PM

2 Kicks, 239 Views

You can find more details and documentation about Hangfire at Hangfire.io. Really, there are only three steps to setting up Hangfire with ASP.NET Core: Tell ASP.NET Core about Hangfire Tell Hangfire which database to use Start firing off background jobs In Startup.cs, in the ConfigureServices method: services.AddHangfire(x => x.UseCouchbaseStorage(configuration, "familyPhotos_hangfire")); Then, in Startup.cs, in the Configure method: I'm using Couchbase in this example, but there are options for SQL Server and other databases too.


0 comments