-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
PowerPlatform-DataverseServiceClient/src/GeneralTools/DataverseClient/Client/ServiceClient.cs
Line 1580 in 44a1af6
| var result = _connectionSvc.Command_WebExecuteAsync(queryString, body, method, customHeaders, contentType, string.Empty, CallerId, _disableConnectionLocking, MaxRetryCount, RetryPauseTime, cancellationToken: cancellationToken).Result; |
Hi,
according to https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-3.0#avoid-blocking-calls the usage of .Result is not okay and can lead to deadlocks. Please consider to use GetAwaiter().GetResult().
Kind regards,
Alexander
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request