The error occurs as soon as nuget server of abp.io is added. (If removed, it correctly downloads all available nuget packages and throws error for the ones of abp that are not accessible).
Yes I have a service to deal with it. Now the problem is just that whoever uses the queue has to remember to do it with the service, and any errors will only occur on runtime.
And ABP is wrapping the jobs in such a way that I found no solution to extend it?
So best is the best way to implement the hangfire queuing logic by myself instead of using the ABP job library?
Hi, this guided me into the right direction, thank you. The solution was pretty simple: Hangfire has a helper function to define json serializers for it globally:
var settings = new JsonSerializerSettings {Formatting = Formatting.Indented};
settings.Converters.Add(new LhirModelsJsonConverter());
GlobalConfiguration.Configuration.UseSerializerSettings(settings); // <-- from Hangfire.GlobalConfiguration
This can be applied in OnApplicationInitialization(). The converter will then be correctly applied to all models of the defined base class.
I added it,the defined job name is still not displayed.
I put it directly after
// Configure Hangfire
context.Services.AddHangfire(config =>
{
config.UseSqlServerStorage(configuration.GetConnectionString("Default"));
});
I found the solution, it had to be added directly into useHangfireDashboard:
var backgroundJobOptions =
context.ServiceProvider.GetRequiredService<IOptions<AbpBackgroundJobOptions>>().Value;
app.UseHangfireDashboard("/jobs", new DashboardOptions
{
DashboardTitle = "MyProject Background Jobs",
DisplayNameFunc = (jobContext, job) =>
{
var jobType = job.Args.First().GetType();
var abpJobType = backgroundJobOptions.GetJob(jobType);
return abpJobType.JobName;
}
});
Ok, so there is nothing like a 'color changer' to simply adopt your lepton theme? This would be a helpful feature. I would assume that most of the customers want to use their own company colors, instead of the generic ABP ones.
I could not find any documentation to blazor server on the abp docs, there is just a description of a blazor client setup. Is it already in version 4.2.2? I'd be glad if you can point me to some documentation.
Thanks!
Ok, so there is no documentation, but in the latest preview there is the option to get blazor side server application... But I am pretty sure the result is broken. There is no Host project that can be started.
We would like to migrate as soon as possible, because waiting 20 seconds for a page is not ok to offer to any user.
Ok, I formulated it badly.
I mean the property AbpAuditLogActions.Parameters, where the HTTP POST Body is logged.
It has a max length of 2000 characters. When the JSON is longer than 2000, it will log nothing at all. I would like to have it cut off instead, same as AbpAuditLogs.Comments.
This works half way, the data is inserted into the DB. But now the Frontend crashes (Blazor), because the Page (AuditLogs -> Action -> Details) seems to expect a valid JSON:
---> System.Text.Json.JsonReaderException: Expected end of string, but instead reached end of data. LineNumber: 0 | BytePositionInLine: 1999.
I guess this was the reason why it was just not inserted into the DB. For auditing it would be really useful to still get the information, wo can this be fixed?