Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libraries/Microsoft.Bot.Builder/BotFrameworkAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -530,7 +531,7 @@ public override async Task<ResourceResponse[]> 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.
Expand Down