Send message to Dashboard

dashboard
Tags: #<Tag:0x00007f499a6e47c8>

#1

How to send text messages to the dashboard and if that possible at all? I am using Hangfire.AspNetCore.

I found an example that PerformContext can be passed to Task method like this

public void TaskMethod(PerformContext context)
{
context.SetTextColor(ConsoleTextColor.Red);
context.WriteLine(“Error!”);
context.ResetTextColor();
}

Unfortunately I do not have these properties like context.WriteLine.


#2

You need to install the Hangfire.Console nuget package.

The project repository is : https://github.com/pieceofsummer/Hangfire.Console