Closed steve-gombos closed 3 years ago
What is MEL?
Sorry, Microsoft.Extensions.Logging.
New nuget uploaded with your changes. https://www.nuget.org/packages/Hangfire.Console.Extensions/1.0.4
Thanks for the work you have done on this.
No problem thanks for your contribution!
Using the Serilog package, there are some scenarios where the PerformingContext is returned as null when a job is first run, but then subsequent jobs log just fine. It seems like this is because the HangfireSubscriber filter is being added after job execution begins. Adding the HangfireSubscriber during ConfigureServices seems to resolve this issue. Not sure why this behavior is different from the MEL implementation, I'm assuming there is a difference between Serilog and MEL startup.