Skip to content

Commit df11520

Browse files
committed
Updated to latest Bot Builder nightly builds.
1 parent 93e47b1 commit df11520

File tree

18 files changed

+102
-104
lines changed

18 files changed

+102
-104
lines changed

libraries/Bot.Builder.Community.Dialogs.DataTypeDisambiguation/Bot.Builder.Community.Dialogs.DataTypeDisambiguation.csproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.1.1" />
8-
<PackageReference Include="Microsoft.Bot.Builder" Version="4.0.0.38375" />
9-
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.0.0.38375" />
10-
<PackageReference Include="Microsoft.Recognizers.Text" Version="1.0.10" />
8+
<PackageReference Include="Microsoft.Bot.Builder" Version="4.0.0.39259" />
9+
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.0.0.39259" />
1110
<PackageReference Include="Microsoft.Recognizers.Text.DataTypes.TimexExpression" Version="1.0.10" />
12-
<PackageReference Include="Microsoft.Recognizers.Text.DateTime" Version="1.0.10" />
1311
</ItemGroup>
1412

1513
</Project>

libraries/Bot.Builder.Community.Dialogs.DataTypeDisambiguation/DisambiguateDateDialog.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ private DisambiguateDateDialog() : base(Id)
1717

1818
AddDialog(new WaterfallDialog(Id, new WaterfallStep[]
1919
{
20-
async(dc, stepContext) =>
20+
async(dc, cancellationToken) =>
2121
{
2222
await dc.Context.SendActivityAsync("What date?");
2323
return EndOfTurn;
2424
},
25-
async (dc, stepContext) =>
25+
async (dc, cancellationToken) =>
2626
{
2727
var stateWrapper = new DisambiguateDateDialogStateWrapper(dc.ActiveDialog.State);
2828

@@ -56,10 +56,10 @@ private DisambiguateDateDialog() : base(Id)
5656
stateWrapper.Date = value.FirstOrDefault().Date1.Value;
5757
return await dc.EndAsync(dc.ActiveDialog.State);
5858
},
59-
async (dc, stepContext) =>
59+
async (dc, cancellationToken) =>
6060
{
6161
var stateWrapper = new DisambiguateDateDialogStateWrapper(dc.ActiveDialog.State);
62-
var amOrPmChoice = ((FoundChoice)stepContext.Result).Value;
62+
var amOrPmChoice = ((FoundChoice)dc.Result).Value;
6363
var availableTimes = stateWrapper.Resolutions.Select(x=>x.Date1.Value);
6464
stateWrapper.Date = amOrPmChoice == "AM" ? availableTimes.Min() : availableTimes.Max();
6565
return await dc.EndAsync(dc.ActiveDialog.State);

libraries/Bot.Builder.Community.Dialogs.DataTypeDisambiguation/DisambiguateTimeDialog.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ private DisambiguateTimeDialog() : base(Id)
1717

1818
AddDialog(new WaterfallDialog(Id, new WaterfallStep[]
1919
{
20-
async (dc, stepContext) =>
20+
async (dc, cancellationToken) =>
2121
{
2222
await dc.Context.SendActivityAsync("What time?");
2323
return EndOfTurn;
2424
},
25-
async (dc, stepContext) =>
25+
async (dc, cancellationToken) =>
2626
{
2727
var stateWrapper = new DisambiguateTimeDialogStateWrapper(dc.ActiveDialog.State);
2828

@@ -55,10 +55,10 @@ private DisambiguateTimeDialog() : base(Id)
5555
stateWrapper.Time = value.FirstOrDefault().Time1.Value;
5656
return await dc.EndAsync(dc.ActiveDialog.State);
5757
},
58-
async (dc, stepContext) =>
58+
async (dc, cancellationToken) =>
5959
{
6060
var stateWrapper = new DisambiguateTimeDialogStateWrapper(dc.ActiveDialog.State);
61-
var amOrPmChoice = ((FoundChoice) stepContext.Result).Value;
61+
var amOrPmChoice = ((FoundChoice) dc.Result).Value;
6262
var availableTimes = stateWrapper.Resolutions.Select(x => x.Time1.Value);
6363
stateWrapper.Time = amOrPmChoice == "AM" ? availableTimes.Min() : availableTimes.Max();
6464
return await dc.EndAsync(dc.ActiveDialog.State);

libraries/Bot.Builder.Community.Dialogs.Location/Bot.Builder.Community.Dialogs.Location.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="CoreCompat.System.Drawing" Version="1.0.0-beta006" />
15-
<PackageReference Include="Microsoft.Bot.Builder" Version="4.0.0.38375" />
16-
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.0.0.38375" />
15+
<PackageReference Include="Microsoft.Bot.Builder" Version="4.0.0.39259" />
16+
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.0.0.39259" />
1717
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
1818
</ItemGroup>
1919

libraries/Bot.Builder.Community.Dialogs.Location/DialogOptions.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55

66
namespace Bot.Builder.Community.Dialogs.Location
77
{
8-
public class SelectLocationDialogOptions : DialogOptions
8+
public class SelectLocationDialogOptions
99
{
1010
public List<Bing.Location> Locations { get; set; }
1111
}
1212

13-
public class CompleteMissingFieldsDialogOptions : DialogOptions
13+
public class CompleteMissingFieldsDialogOptions
1414
{
1515
public Bing.Location Location { get; set; }
1616
}
1717

18-
public class ConfirmDeleteFavoriteDialogOptions : DialogOptions
18+
public class ConfirmDeleteFavoriteDialogOptions
1919
{
2020
public FavoriteLocation Location { get; set; }
2121
}
2222

23-
public class AddToFavoritesDialogOptions : DialogOptions
23+
public class AddToFavoritesDialogOptions
2424
{
2525
public Bing.Location Location { get; set; }
2626
}

0 commit comments

Comments
 (0)