Last active
April 26, 2016 02:07
-
-
Save dcomartin/096da92ad29257747d6323ba4d6facfb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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