diff --git a/libraries/Microsoft.Bot.Builder/BotFrameworkAdapter.cs b/libraries/Microsoft.Bot.Builder/BotFrameworkAdapter.cs index 3c4aa07c42..83301f35c2 100644 --- a/libraries/Microsoft.Bot.Builder/BotFrameworkAdapter.cs +++ b/libraries/Microsoft.Bot.Builder/BotFrameworkAdapter.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Net; using System.Net.Http; @@ -530,7 +531,7 @@ public override async Task SendActivitiesAsync(ITurnContext { // The Activity Schema doesn't have a delay type built in, so it's simulated // here in the Bot. This matches the behavior in the Node connector. - var delayMs = (int)activity.Value; + var delayMs = Convert.ToInt32(activity.Value, CultureInfo.InvariantCulture); await Task.Delay(delayMs, cancellationToken).ConfigureAwait(false); // No need to create a response. One will be created below.