Skip to content

Commit 8839906

Browse files
committed
Merge branch 'master' into develop
2 parents b7d7947 + c6fe685 commit 8839906

File tree

155 files changed

+13341
-9851
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+13341
-9851
lines changed

CSharp/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ TestResult.xml
4141
dlldata.c
4242

4343
# DNX
44-
project.lock.json
44+
*.lock.json
4545
artifacts/
4646

4747
*_i.c

CSharp/Documentation/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ SHOW_USED_FILES = YES
631631
# (if specified).
632632
# The default value is: YES.
633633

634-
SHOW_FILES = YES
634+
SHOW_FILES = NO
635635

636636
# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
637637
# page. This will remove the Namespaces entry from the Quick Index and from the

CSharp/Documentation/GettingStarted.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Use the %Bot Framework Emulator to test your %Bot application
7676
The %Bot Framework provides a a channel emulator that lets you test calls to your %Bot as if it were being called
7777
by the %Bot Framework cloud service. To install the %Bot Framework Emulator, download it from <strong><a href="https://aka.ms/bf-bc-emulator" target="_blank">here</a></strong>.
7878
79-
One installed, you're ready to test. First, start your %Bot in Visual Studio using a browser as the application
79+
Once installed, you're ready to test. First, start your %Bot in Visual Studio using a browser as the application
8080
host. The image below uses %Microsoft Edge.
8181
8282
![Start your Bot in VS2015 targeting the browser](/en-us/images/connector/connector-getstarted-start-bot-locally.png)

CSharp/Documentation/StateAPI.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ You can use these keys to store information in your own database as appropriate
3535
| **DeleteStateForUser()** | User | When the user requests data be deleted or removes the %bot contact
3636
3737
When your %bot sends a reply you simply set your object in one of the BotData records properties and it will be persisted and
38-
played back to you on future messages when the context is the same.
38+
played back to you on future messages when the context is the same. Your bot may store data for a user, a conversation, or a single
39+
user within a conversation (called "private" data). Each payload may be up to 32 kilobytes in size. The data may be removed by
40+
the bot or upon a user's request, e.g. if the user requests the channel to inform the bot (and therefore, the %Bot Framework)
41+
to delete the user's data.
3942
4043
> NOTE: If the record doesn't exist, it will return a new BotData() record with a null .Data field and an ETag = "*", so that is suitable for
4144
> changing and passing back to be saved

CSharp/Library/ConnectorEx/KeyboardCard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
namespace Microsoft.Bot.Builder.ConnectorEx
4141
{
4242
/// <summary>
43-
/// Card representing a keyboad
43+
/// Card representing a keyboard
4444
/// </summary>
4545
/// <remarks>
4646
/// This will be mapped to <see cref="HeroCard"/> for all channels

CSharp/Library/Dialogs/Address.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
using Microsoft.Bot.Builder.Internals.Fibers;
3535
using Microsoft.Bot.Connector;
36+
using Newtonsoft.Json;
3637
using System;
3738
using System.Collections.Generic;
3839

@@ -69,6 +70,7 @@ public static Address FromActivity(IActivity activity)
6970
);
7071
}
7172

73+
[JsonConstructor]
7274
public Address(string botId, string channelId, string userId, string conversationId, string serviceUrl)
7375
{
7476
SetField.CheckNull(nameof(botId), botId);

CSharp/Library/Microsoft.Bot.Builder.Calling/Models/Contracts/Recognize.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ public class Recognize : ActionBase
3939
/// Default : 5 secs
4040
/// </summary>
4141
[JsonProperty(Required = Required.Default)]
42-
public uint? InitialSilenceTimeoutInSeconds { get; set; }
42+
public double? InitialSilenceTimeoutInSeconds { get; set; }
4343

4444
/// <summary>
4545
/// Mamimum allowed time between digits if we are doing dtmf based choice recognition or CollectDigits recognition
4646
///
4747
/// Default : 1 sec
4848
/// </summary>
4949
[JsonProperty(Required = Required.Default)]
50-
public uint? InterdigitTimeoutInSeconds { get; set; }
50+
public double? InterdigitTimeoutInSeconds { get; set; }
5151

5252
/// <summary>
5353
/// List of choices to recognize against. Choices can be speech or dtmf based.

CSharp/Library/Microsoft.Bot.Builder.Calling/Models/Contracts/Record.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class Record : ActionBase
2222
/// Maximum duration of recording . Default : 180 secs
2323
/// </summary>
2424
[JsonProperty(Required = Required.Default)]
25-
public uint? MaxDurationInSeconds { get; set; }
25+
public double? MaxDurationInSeconds { get; set; }
2626

2727
/// <summary>
2828
/// Maximum initial silence allowed from the time we start the recording operation
@@ -31,7 +31,7 @@ public class Record : ActionBase
3131
/// Default : 5
3232
/// </summary>
3333
[JsonProperty(Required = Required.Default)]
34-
public uint? InitialSilenceTimeoutInSeconds { get; set; }
34+
public double? InitialSilenceTimeoutInSeconds { get; set; }
3535

3636
/// <summary>
3737
/// Maximum allowed silence once the user has started speaking before we conclude
@@ -40,7 +40,7 @@ public class Record : ActionBase
4040
/// Default : 1
4141
/// </summary>
4242
[JsonProperty(Required = Required.Default)]
43-
public uint? MaxSilenceTimeoutInSeconds { get; set; }
43+
public double? MaxSilenceTimeoutInSeconds { get; set; }
4444

4545
/// <summary>
4646
/// The format is which the recording is expected.

CSharp/Library/Microsoft.Bot.Builder.Calling/Models/Misc/MinValues.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ public static class MinValues
77
/// <summary>
88
/// JSON Content Type
99
/// </summary>
10-
public static readonly TimeSpan RecordingDuration = TimeSpan.FromSeconds(10);
10+
public static readonly TimeSpan RecordingDuration = TimeSpan.FromSeconds(2.0);
1111

1212
///<summary>
1313
/// Minimum allowed silence once the user has started speaking before we conclude
1414
/// the user is done recording.
1515
/// </summary>
16-
public static readonly TimeSpan SilenceTimeout = TimeSpan.FromSeconds(1);
16+
public static readonly TimeSpan SilenceTimeout = TimeSpan.FromSeconds(0.0);
1717

1818
/// <summary>
1919
/// Minimum initial silence allowed from the time we start the operation

CSharp/Library/Microsoft.Bot.Builder.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<dependency id="Microsoft.AspNet.WebAPI.Core" version="5.2.3" />
2828
<dependency id="Microsoft.Rest.ClientRuntime" version="2.3.2" />
2929
<dependency id="Newtonsoft.Json" version="8.0.3" />
30-
<dependency id="System.IdentityModel.Tokens.Jwt" version="4.0.2.206221351" />
30+
<dependency id="System.IdentityModel.Tokens.Jwt" version="[4.0.2.206221351,5.0)" />
3131
<dependency id="Microsoft.IdentityModel.Protocol.Extensions" version="1.0.2.206221351" />
3232
</dependencies>
3333
</metadata>

CSharp/Library/Microsoft.Bot.Connector/APIResponseEx.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)