JobStorage.Current could not initialize it with the storage in SQL Server

Tags: #<Tag:0x00007f28b3070728>

I have developed an application in netcore 3.1 that works very well on windows servers and at the time of transferring it to Linux it has not worked and the reason is that the JobStorage.Current could not initialize it with the storage in SQL Server I saw that when trying to update in nuget it continued using System.Data.SqlClient and that may be the fault.

Can you tell me how I would use the hangfire client with MSSQL storage on linux?

HangFire Free

My Code:
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHangfire(config => config.UseSqlServerStorage(Configuration[“DBConexSQLString”]));
}
public void InitializeHangFire()
{
var sqlStorage = new SqlServerStorage(Configuration[“DBConexSQLString”]);
var options = new Hangfire.BackgroundJobServerOptions
{
//ServerName = “Test Server”
};
JobStorage.Current = sqlStorage;
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
InitializeHangFire();
}
}