We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 990867a commit 4ca0a84Copy full SHA for 4ca0a84
1 file changed
src/ServiceStack.Azure/Messaging/ServiceBusMqClient.cs
@@ -86,7 +86,7 @@ public override void Dispose()
86
string lockToken = null;
87
88
#if NETSTANDARD2_0
89
- var msg = sbClient.ReceiveAsync(timeout).Result;
+ var msg = Task.Run(() => sbClient.ReceiveAsync(timeout)).GetAwaiter().GetResult();
90
if (msg != null)
91
lockToken = msg.SystemProperties.LockToken;
92
#else
0 commit comments