private async Task <string> WaitForMessageStoreAsync(string correlationKey) { var messageStoreResult = string.Empty; for (int i = 0; i <= 10; i++) { messageStoreResult = TelegramModule.GetMessageByCorrelationId(correlationKey); if (messageStoreResult.Contains(nameof(KeyNotFoundException))) { await Task.Delay(1000); } else { break; } } return(messageStoreResult); }