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
8 changes: 4 additions & 4 deletions CSharp/Library/Microsoft.Bot.Connector/StateClientEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public partial class StateClient
/// <summary>
/// Create a new instance of the StateClient class
/// </summary>
/// <param name="baseUri">Base URI for the Connector service</param>
/// <param name="baseUri">Base URI for the State service</param>
/// <param name="microsoftAppId">Optional. Your Microsoft app id. If null, this setting is read from settings["MicrosoftAppId"]</param>
/// <param name="microsoftAppPassword">Optional. Your Microsoft app password. If null, this setting is read from settings["MicrosoftAppPassword"]</param>
/// <param name="handlers">Optional. The delegating handlers to add to the http client pipeline.</param>
Expand All @@ -21,7 +21,7 @@ public StateClient(Uri baseUri, string microsoftAppId = null, string microsoftAp
/// <summary>
/// Create a new instance of the StateClient class
/// </summary>
/// <param name="baseUri">Base URI for the Connector service</param>
/// <param name="baseUri">Base URI for the State service</param>
/// <param name="credentials">Credentials for the Connector service</param>
/// <param name="addJwtTokenRefresher">True, if JwtTokenRefresher should be included; False otherwise.</param>
/// <param name="handlers">Optional. The delegating handlers to add to the http client pipeline.</param>
Expand All @@ -34,14 +34,14 @@ public StateClient(Uri baseUri, MicrosoftAppCredentials credentials, bool addJwt
/// <summary>
/// Create a new instance of the StateClient class
/// </summary>
/// <remarks> This constructor will use http://api.botframework.com as the baseUri</remarks>
/// <remarks> This constructor will use https://state.botframework.com as the baseUri</remarks>
/// <param name="credentials">Credentials for the Connector service</param>
/// <param name="addJwtTokenRefresher">True, if JwtTokenRefresher should be included; False otherwise.</param>
/// <param name="handlers">Optional. The delegating handlers to add to the http client pipeline.</param>
public StateClient(MicrosoftAppCredentials credentials, bool addJwtTokenRefresher = true, params DelegatingHandler[] handlers)
:this(addJwtTokenRefresher ? AddJwtTokenRefresher(handlers, credentials) : handlers)
{
this.Credentials = credentials;
this.Credentials = credentials;
}

private static DelegatingHandler[] AddJwtTokenRefresher(DelegatingHandler[] srcHandlers, MicrosoftAppCredentials credentials)
Expand Down