Bedingung vom Typ new() entfernen

This commit is contained in:
Developer 02
2024-06-27 16:02:41 +02:00
parent 8f09ec4255
commit b0f5738390
7 changed files with 10 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ namespace DigitalData.Core.Client
}
public static IServiceCollection AddHttpClientService<TClientOptions>(this IServiceCollection services, Action<TClientOptions>? clientOptions = null, bool setAsDefaultBase = false)
where TClientOptions : HttpClientOptions, new()
where TClientOptions : HttpClientOptions
{
services.TryAddSingleton<HttpClient>();
services.TryAddSingleton<CookieContainer>();