-2

I am creating a console application in which I need to perform some tasks in parallel so I am trying to use Hangfire.Net.

Can anyone please suggest me how to configure Hangfire.Net in .NET Core console application?

Dale K
  • 25,246
  • 15
  • 42
  • 71
Jatinder Singh
  • 197
  • 3
  • 12
  • in general, this [hangfire documentation](http://docs.hangfire.io/en/latest/background-processing/processing-jobs-in-console-app.html) is still valid for .NET Core. Try it and post a question with the specific problem if you face one. Sorry, but right now this is an off-topic, as you ask for some kind of tutorial. – Set Apr 03 '18 at 07:07

1 Answers1

1

Configuration of Hangfire in .Net Core is quite state forward This will store it in the database.

GlobalConfiguration.Configuration.UseSqlServerStorage("connection_string");

using (var server = new BackgroundJobServer())
    {
     Console.WriteLine("Hangfire Server started. Press any key to exit...");
     Console.ReadKey();
    }

Code ripped from documentation

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449