I use hangfire in a webforms project. Hangfire itself was working. Then I installed Hangfire.Console extension to add log messages, but now I get an error
Error CS0234
The type or namespace name 'Console' does not exist in the namespace 'Hangfire' (are you missing an assembly reference?) HangTest2
My code:
Packages:
Global:
Startup:
As you have noted there is no usecosole - what am I doing wrong?
I'm using .NET Framework 4.7 and an ASP.NET webforms project
Edit
auto complete working with hangfire.console

Edit : the link is talking about Hangfire with log packages My Question about the package Hangfire.Console



You need to use like this.
Hangfire.Consoleprovides extension methods on PerformContext object, hence you'll need to add it as a job argument. NOTE: LikeIJobCancellationToken,PerformContextis a special argument type which Hangfire will substitute automatically. You should passnullwhen enqueuing a job. Now you can write to console:Reference: https://github.com/pieceofsummer/Hangfire.Console