Minimize dependencies for starting IPC server

Previously WebApplication didn't offer any advantages over generic Host, but with release of .NET 8 there is now slim and empty builders, which limit amount of initialized dependencies and allow us to skip some unnecessary features in default pipeline.
This commit is contained in:
Archi
2024-03-09 18:24:15 +01:00
parent e7bdd408be
commit 1fd6c8a477
6 changed files with 432 additions and 460 deletions

View File

@@ -67,6 +67,7 @@ internal sealed class ApiAuthenticationMiddleware {
}
}
[UnconditionalSuppressMessage("AssemblyLoadTrimming", "IL2026:RequiresUnreferencedCode", Justification = "We don't care about trimmed assemblies, as we need it to work only with the known (used) ones")]
[UsedImplicitly]
public async Task InvokeAsync(HttpContext context, IOptions<JsonOptions> jsonOptions) {
ArgumentNullException.ThrowIfNull(context);