After migrating a WPF application to dotnet core 3 I am getting a TaskCancelledException in Visual Studio debugger every time the application is closing. This behavior was not seen using .NetFramework. The application follows MVVM pattern and does some async CRUD operations, is there any chance I can see where [...] read more
I have typed Http client with Polly configured. This is my Program.cs: serviceCollection.AddSingleton<IPolicyBuilder, PolicyBuilder>(); serviceCollection .AddHttpClient<ICustomHttpClient, CustomHttpClient>() .AddPolicyHandler((serviceProvider, httpRequestMessage) => { var policyBuilder = serviceProvider.GetRequiredService<IPolicyBuilder>(); return policyBuilder.BuildGenericPolicy(); }); My typed client: public class CustomHttpClient: ICustomHttpClient { private readonly HttpClient _httpClient; public NotificationsApiHttpClient(HttpClient httpClient) { _httpClient = httpClient ?? throw new [...] read more