From d6a5bbc49841c3b3c957c4e4fb23c5e456ff2207 Mon Sep 17 00:00:00 2001 From: "PUBNUB\\jakub.grzesiowski" Date: Wed, 30 Oct 2024 13:13:48 +0100 Subject: [PATCH] Add some more missinng ConfigureAwait(false) --- .../PubnubApi/EndPoint/StoragePlayback/FetchHistoryOperation.cs | 2 +- src/Api/PubnubApi/EventEngine/Core/EffectDispatcher.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/PubnubApi/EndPoint/StoragePlayback/FetchHistoryOperation.cs b/src/Api/PubnubApi/EndPoint/StoragePlayback/FetchHistoryOperation.cs index 4e5ba9a5f..2611c19fa 100644 --- a/src/Api/PubnubApi/EndPoint/StoragePlayback/FetchHistoryOperation.cs +++ b/src/Api/PubnubApi/EndPoint/StoragePlayback/FetchHistoryOperation.cs @@ -142,7 +142,7 @@ public async Task> ExecuteAsync() throw new NotSupportedException("Only one channel can be used along with MessageActions"); } - return await History(); + return await History().ConfigureAwait(false); } internal void Retry() diff --git a/src/Api/PubnubApi/EventEngine/Core/EffectDispatcher.cs b/src/Api/PubnubApi/EventEngine/Core/EffectDispatcher.cs index f9c9c5a7d..eb26b9d73 100644 --- a/src/Api/PubnubApi/EventEngine/Core/EffectDispatcher.cs +++ b/src/Api/PubnubApi/EventEngine/Core/EffectDispatcher.cs @@ -21,7 +21,7 @@ public async Task Dispatch(IEffectInvocation invocation) { OnEffectDispatch?.Invoke(invocation); if (invocation is IEffectCancelInvocation) { - await effectInvocationHandlerMap[invocation.GetType()].Cancel(); + await effectInvocationHandlerMap[invocation.GetType()].Cancel().ConfigureAwait(false); } else { var handler = effectInvocationHandlerMap[invocation.GetType()];