Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Last active April 26, 2016 02:07
Show Gist options
  • Save dcomartin/096da92ad29257747d6323ba4d6facfb to your computer and use it in GitHub Desktop.
Save dcomartin/096da92ad29257747d6323ba4d6facfb to your computer and use it in GitHub Desktop.
using System;
namespace Hangfire.Demo
{
class Program
{
static void Main(string[] args)
{
GlobalConfiguration.Configuration
.UseColouredConsoleLogProvider()
.UseSqlServerStorage("MyHangfireConnection");
using (var server = new BackgroundJobServer())
{
Console.WriteLine("Hangfire Server started. Press any key to exit...");
Console.ReadKey();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment