You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.Graph.Core/Requests/GraphClientFactory.cs
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ namespace Microsoft.Graph
9
9
usingSystem.Net;
10
10
usingSystem.Net.Http;
11
11
usingSystem.Net.Http.Headers;
12
+
usingSystem.Threading;
12
13
usingAzure.Core;
13
14
usingMicrosoft.Graph.Authentication;
14
15
usingMicrosoft.Kiota.Abstractions.Authentication;
@@ -119,7 +120,7 @@ public static HttpClient Create(
119
120
/// <param name="proxy">The proxy to be used with the created client</param>
120
121
/// <param name="finalHandler">The last HttpMessageHandler to HTTP calls.</param>
121
122
/// <param name="disposeHandler">true if the inner handler should be disposed of by Dispose(), false if you intend to reuse the inner handler..</param>
122
-
/// <returns></returns>
123
+
/// <returns>An <see cref="HttpClient"/> instance with the configured handlers</returns>
/// Creates a new <see cref="HttpClient"/> instance configured to authenticate requests using the provided <see cref="TokenCredential"/>.
142
144
/// </summary>
143
-
/// <param name="tokenCredential">Token credential object use to initialise an <see cref="AzureIdentityAuthenticationProvider"></param>
145
+
/// <param name="tokenCredential">Token credential object use to initialise an <see cref="AzureIdentityAuthenticationProvider"/></param>
144
146
/// <param name="handlers">Custom middleware pipeline to which the Authorization handler is appended. If null, default handlers are initialised</param>
145
147
/// <param name="version">The Graph version to use in the base URL</param>
146
148
/// <param name="nationalCloud">The national cloud endpoint to use</param>
147
149
/// <param name="proxy">The proxy to be used with the created client</param>
148
150
/// <param name="finalHandler">The last HttpMessageHandler to HTTP calls</param>
149
-
/// <param name="disposeHandler">true if the inner handler should be disposed of by Dispose(), false if you intend to reuse the inner handler..</param>
150
-
/// <returns></returns>
151
+
/// <param name="disposeHandler">true if the inner handler should be disposed of by Dispose(), false if you intend to reuse the inner handler.</param>
152
+
/// <returns>An <see cref="HttpClient"/> instance with the configured handlers</returns>
151
153
publicstaticHttpClientCreate(
152
154
TokenCredentialtokenCredential,
153
155
IEnumerable<DelegatingHandler>handlers=null,
@@ -161,10 +163,11 @@ public static HttpClient Create(
0 commit comments