File tree 18 files changed +102
-104
lines changed
Bot.Builder.Community.Middleware.HandleActivityType
18 files changed +102
-104
lines changed Original file line number Diff line number Diff line change 5
5
</PropertyGroup >
6
6
<ItemGroup >
7
7
<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" />
11
10
<PackageReference Include =" Microsoft.Recognizers.Text.DataTypes.TimexExpression" Version =" 1.0.10" />
12
- <PackageReference Include =" Microsoft.Recognizers.Text.DateTime" Version =" 1.0.10" />
13
11
</ItemGroup >
14
12
15
13
</Project >
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ private DisambiguateDateDialog() : base(Id)
17
17
18
18
AddDialog ( new WaterfallDialog ( Id , new WaterfallStep [ ]
19
19
{
20
- async ( dc , stepContext ) =>
20
+ async ( dc , cancellationToken ) =>
21
21
{
22
22
await dc . Context . SendActivityAsync ( "What date?" ) ;
23
23
return EndOfTurn ;
24
24
} ,
25
- async ( dc , stepContext ) =>
25
+ async ( dc , cancellationToken ) =>
26
26
{
27
27
var stateWrapper = new DisambiguateDateDialogStateWrapper ( dc . ActiveDialog . State ) ;
28
28
@@ -56,10 +56,10 @@ private DisambiguateDateDialog() : base(Id)
56
56
stateWrapper . Date = value . FirstOrDefault ( ) . Date1 . Value ;
57
57
return await dc . EndAsync ( dc . ActiveDialog . State ) ;
58
58
} ,
59
- async ( dc , stepContext ) =>
59
+ async ( dc , cancellationToken ) =>
60
60
{
61
61
var stateWrapper = new DisambiguateDateDialogStateWrapper ( dc . ActiveDialog . State ) ;
62
- var amOrPmChoice = ( ( FoundChoice ) stepContext . Result ) . Value ;
62
+ var amOrPmChoice = ( ( FoundChoice ) dc . Result ) . Value ;
63
63
var availableTimes = stateWrapper . Resolutions . Select ( x=> x . Date1 . Value ) ;
64
64
stateWrapper . Date = amOrPmChoice == "AM" ? availableTimes . Min ( ) : availableTimes . Max ( ) ;
65
65
return await dc . EndAsync ( dc . ActiveDialog . State ) ;
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ private DisambiguateTimeDialog() : base(Id)
17
17
18
18
AddDialog ( new WaterfallDialog ( Id , new WaterfallStep [ ]
19
19
{
20
- async ( dc , stepContext ) =>
20
+ async ( dc , cancellationToken ) =>
21
21
{
22
22
await dc . Context . SendActivityAsync ( "What time?" ) ;
23
23
return EndOfTurn ;
24
24
} ,
25
- async ( dc , stepContext ) =>
25
+ async ( dc , cancellationToken ) =>
26
26
{
27
27
var stateWrapper = new DisambiguateTimeDialogStateWrapper ( dc . ActiveDialog . State ) ;
28
28
@@ -55,10 +55,10 @@ private DisambiguateTimeDialog() : base(Id)
55
55
stateWrapper . Time = value . FirstOrDefault ( ) . Time1 . Value ;
56
56
return await dc . EndAsync ( dc . ActiveDialog . State ) ;
57
57
} ,
58
- async ( dc , stepContext ) =>
58
+ async ( dc , cancellationToken ) =>
59
59
{
60
60
var stateWrapper = new DisambiguateTimeDialogStateWrapper ( dc . ActiveDialog . State ) ;
61
- var amOrPmChoice = ( ( FoundChoice ) stepContext . Result ) . Value ;
61
+ var amOrPmChoice = ( ( FoundChoice ) dc . Result ) . Value ;
62
62
var availableTimes = stateWrapper . Resolutions . Select ( x => x . Time1 . Value ) ;
63
63
stateWrapper . Time = amOrPmChoice == "AM" ? availableTimes . Min ( ) : availableTimes . Max ( ) ;
64
64
return await dc . EndAsync ( dc . ActiveDialog . State ) ;
Original file line number Diff line number Diff line change 12
12
13
13
<ItemGroup >
14
14
<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 " />
17
17
<PackageReference Include =" Newtonsoft.Json" Version =" 11.0.2" />
18
18
</ItemGroup >
19
19
Original file line number Diff line number Diff line change 5
5
6
6
namespace Bot . Builder . Community . Dialogs . Location
7
7
{
8
- public class SelectLocationDialogOptions : DialogOptions
8
+ public class SelectLocationDialogOptions
9
9
{
10
10
public List < Bing . Location > Locations { get ; set ; }
11
11
}
12
12
13
- public class CompleteMissingFieldsDialogOptions : DialogOptions
13
+ public class CompleteMissingFieldsDialogOptions
14
14
{
15
15
public Bing . Location Location { get ; set ; }
16
16
}
17
17
18
- public class ConfirmDeleteFavoriteDialogOptions : DialogOptions
18
+ public class ConfirmDeleteFavoriteDialogOptions
19
19
{
20
20
public FavoriteLocation Location { get ; set ; }
21
21
}
22
22
23
- public class AddToFavoritesDialogOptions : DialogOptions
23
+ public class AddToFavoritesDialogOptions
24
24
{
25
25
public Bing . Location Location { get ; set ; }
26
26
}
You can’t perform that action at this time.
0 commit comments