Base solution for your next web application

Activities of "fgonzalez"

Update:

The problem occurred with Hangfire is this library that generated conflict with the new parameter in the cs, what I did was add another special cs, without the parameter, for Hangfire in appsettings.json then change the following lines of code:

appsettings.json

"ConnectionStrings": {
  "Default":"Server=localhost; Database=xxx; User Id=xxx; Password=xxx; Column Encryption Setting = Enabled;",
  "Hangfire":"Server=localhost; Database=xxx; User Id=xxx; Password=xxx;"
},

Startup.cs

if (WebConsts.HangfireDashboardEnabled)
{
    //Hangfire(Enable to use Hangfire instead of default job manager)
    services.AddHangfire(config =>    {
        config.SetDataCompatibilityLevel(CompatibilityLevel.Version_170);
        config.UseColouredConsoleLogProvider();
        config.UseSimpleAssemblyNameTypeSerializer();
        config.UseRecommendedSerializerSettings();
        config.UseSqlServerStorage(_appConfiguration.GetConnectionString("Hangfire"), new SqlServerStorageOptions
        {            CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
            SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
            QueuePollInterval = TimeSpan.Zero,
            UseRecommendedIsolationLevel = true,
            DisableGlobalLocks = true,
            UsePageLocksOnDequeue = true
        });    });
}

WebCoreModule.cs

JobStorage.Current = new SqlServerStorage(_appConfiguration.GetConnectionString("Hangfire"));

Do I have to change something else in the ABP Zero Project so that Hangfire does not have problems?

Answer

Thanks for the reply @ismcagdas

Showing 1 to 2 of 2 entries