@@ -31,18 +31,32 @@ public ConnectorClient(Uri baseUri, string microsoftAppId = null, string microso
31
31
/// <param name="addJwtTokenRefresher">True, if JwtTokenRefresher should be included; False otherwise.</param>
32
32
/// <param name="handlers">Optional. The delegating handlers to add to the http client pipeline.</param>
33
33
public ConnectorClient ( Uri baseUri , MicrosoftAppCredentials credentials , bool addJwtTokenRefresher = true , params DelegatingHandler [ ] handlers )
34
- : this ( baseUri , addJwtTokenRefresher ? AddJwtTokenRefresher ( handlers , credentials ) : handlers )
34
+ : this ( baseUri , addJwtTokenRefresher ? AddJwtTokenRefresher ( handlers , credentials ) : handlers )
35
35
{
36
36
this . Credentials = credentials ;
37
37
}
38
38
39
+ /// <summary>
40
+ /// Create a new instances of the ConnectorClient.
41
+ /// </summary>
42
+ /// <param name="baseUri">Base URI for the Connector service</param>
43
+ /// <param name="credentials">Credentials for the Connector service</param>
44
+ /// <param name="httpClientHandler">The httpClientHandler used by http client</param>
45
+ /// <param name="addJwtTokenRefresher">True, if JwtTokenRefresher should be included; False otherwise.</param>
46
+ /// <param name="handlers">Optional. The delegating handlers to add to the http client pipeline.</param>
47
+ public ConnectorClient ( Uri baseUri , MicrosoftAppCredentials credentials , HttpClientHandler httpClientHandler , bool addJwtTokenRefresher = true , params DelegatingHandler [ ] handlers )
48
+ : this ( baseUri , httpClientHandler , addJwtTokenRefresher ? AddJwtTokenRefresher ( handlers , credentials ) : handlers )
49
+ {
50
+ this . Credentials = credentials ;
51
+ }
52
+
39
53
private static DelegatingHandler [ ] AddJwtTokenRefresher ( DelegatingHandler [ ] srcHandlers , MicrosoftAppCredentials credentials )
40
54
{
41
55
var handlers = new List < DelegatingHandler > ( srcHandlers ) ;
42
56
handlers . Add ( new JwtTokenRefresher ( credentials ) ) ;
43
57
return handlers . ToArray ( ) ;
44
58
}
45
-
59
+
46
60
// client defaults to sending the expect: continue header, which isn't very efficient,
47
61
partial void CustomInitialize ( )
48
62
{
0 commit comments