Bedingung vom Typ new() entfernen
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user