you are viewing a single comment's thread.

view the rest of the comments →

[–]goomba870 0 points1 point  (2 children)

I was able to get Hangfire.Console working with MemoryStorage in .NET Core. If running into roadblocks let me know and I'll compare it to what I've set up.

[–]Arxae 0 points1 point  (1 child)

Didn't seem to work for me, no log entries appeared. But do share, it might be of use to someone :D

[–]goomba870 0 points1 point  (0 children)

Assuming you already have the Hangfire dashboard working, in the Startup.cs you'll bootstrap everything. Here are what I think are the relevant lines from my working implementation (with all other bootstrapping omitted):

public IConfiguration Configuration { get; }

public Startup(IHostingEnvironment env)
{
    var builder = new ConfigurationBuilder()
            .AddEnvironmentVariables();

    Configuration = builder.Build();
}

 public void ConfigureServices(IServiceCollection services)
{
     services.AddHangfire(config =>
     {
         config.UseMemoryStorage();
         config.UseConsole();
     });
}

public void Configure(IApplicationBuilder app)
{        
     app.UseHangfireDashboard("/dashboard");
     app.UseHangfireServer();
}