Removed unused middleware. Fixed plugin loading issues

This commit is contained in:
2025-04-15 12:19:32 +02:00
parent 0b0c9304b1
commit db7ac8d174
4 changed files with 35 additions and 92 deletions

View File

@@ -236,7 +236,9 @@ public class Startup
{
try
{
PluginLoadContext.LoadFromAssemblyPath(assemblyFile);
PluginLoadContext.LoadFromAssemblyPath(
Path.Combine(Directory.GetCurrentDirectory(), assemblyFile)
);
}
catch (Exception e)
{
@@ -647,7 +649,7 @@ public class Startup
"Hangfire.Server.BackgroundServerProcess",
LogLevel.Warning
);
WebApplicationBuilder.Logging.AddFilter(
"Hangfire.BackgroundJobServer",
LogLevel.Warning
@@ -660,7 +662,7 @@ public class Startup
{
if (WebApplication.Environment.IsDevelopment())
WebApplication.UseHangfireDashboard();
return Task.CompletedTask;
}