Create CreateHostBuilder method.
MODIFY
WalletWasabi.Backend/Program.cs
WalletWasabi.Backend/Program.cs
@@ -15,11 +15,7 @@ namespace WalletWasabi.Backend
{
try
{
- using var host = Host.CreateDefaultBuilder(args)
- .ConfigureWebHostDefaults(webBuilder => webBuilder
- .UseStartup<Startup>())
- .Build();
-
+ using var host = CreateHostBuilder(args).Build();
await host.RunWithTasksAsync();
}
catch (Exception ex)
@@ -27,5 +23,8 @@ namespace WalletWasabi.Backend
Logger.LogCritical(ex);
}
}
+
+ public static IHostBuilder CreateHostBuilder(string[] args) =>
+ Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup<Startup>());
}
}

Create CreateHostBuilder method.