Skip to content

Commit 8ac9892

Browse files
MIchaelMainerpeombwa
authored andcommitted
Made GraphClientFactory internal
1 parent 6af3abf commit 8ac9892

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Microsoft.Graph.Core/Requests/GraphClientFactory.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ namespace Microsoft.Graph
1111
using System.Reflection;
1212
using System.Net.Http.Headers;
1313

14-
14+
1515
/// <summary>
1616
/// GraphClientFactory class to create the HTTP client
1717
/// </summary>
18-
public static class GraphClientFactory
18+
internal static class GraphClientFactory
1919
{
2020

21-
21+
2222
/// The key for the SDK version header.
2323
private static readonly string SdkVersionHeaderName = CoreConstants.Headers.SdkVersionHeaderName;
2424

@@ -58,31 +58,31 @@ public static class GraphClientFactory
5858
public const string Germany_Cloud = "Germany";
5959

6060
/// <summary>
61-
/// Proxy to be used with created clients
61+
/// Proxy to be used with created clients
6262
/// </summary>
6363
public static IWebProxy Proxy { get; set; }
6464

6565
/// <summary>
6666
/// DefaultHandler is a Func that returns the HttpMessageHandler for actually making the HTTP calls.
67-
/// The default implementation returns a new instance of HttpClientHandler for each HttpClient.
67+
/// The default implementation returns a new instance of HttpClientHandler for each HttpClient.
6868
/// </summary>
6969
public static Func<HttpMessageHandler> DefaultHttpHandler = () => {
7070
return new HttpClientHandler
7171
{
7272
Proxy = Proxy
7373
};
7474
};
75-
75+
7676

7777
/// <summary>
7878
/// Creates a new <see cref="HttpClient"/> instance configured with the handlers provided and with the
7979
/// provided <paramref name="innerHandler"/> as the innermost handler.
8080
/// </summary>
8181
/// <param name="innerHandler">The inner handler represents the destination of the HTTP message channel.</param>
82-
/// <param name="handlers">An ordered list of <see cref="DelegatingHandler"/> instances to be invoked as an
83-
/// <see cref="HttpRequestMessage"/> travels from the <see cref="HttpClient"/> to the network and an
82+
/// <param name="handlers">An ordered list of <see cref="DelegatingHandler"/> instances to be invoked as an
83+
/// <see cref="HttpRequestMessage"/> travels from the <see cref="HttpClient"/> to the network and an
8484
/// <see cref="HttpResponseMessage"/> travels from the network back to <see cref="HttpClient"/>.
85-
/// The handlers are invoked in a top-down fashion. That is, the first entry is invoked first for
85+
/// The handlers are invoked in a top-down fashion. That is, the first entry is invoked first for
8686
/// an outbound request message but last for an inbound response message.</param>
8787
/// <returns>An <see cref="HttpClient"/> instance with the configured handlers.</returns>
8888
public static HttpClient Create(string version = "v1.0", string nationalCloud = Global_Cloud, IEnumerable<DelegatingHandler> handlers = null)
@@ -113,7 +113,7 @@ public static IEnumerable<DelegatingHandler> CreateDefaultHandlers()
113113
return new List<DelegatingHandler> {
114114
new RetryHandler(),
115115
new RedirectHandler()
116-
};
116+
};
117117
}
118118

119119
private static Uri DetermineBaseAddress(string nationalCloud, string version)
@@ -127,16 +127,16 @@ private static Uri DetermineBaseAddress(string nationalCloud, string version)
127127
return new Uri(cloudAddress);
128128

129129
}
130-
130+
131131
/// <summary>
132132
/// Creates an instance of an <see cref="HttpMessageHandler"/> using the <see cref="DelegatingHandler"/> instances
133133
/// provided by <paramref name="handlers"/>. The resulting pipeline can be used to manually create <see cref="HttpClient"/>
134134
/// or <see cref="HttpMessageInvoker"/> instances with customized message handlers.
135135
/// </summary>
136136
/// <param name="innerHandler">The inner handler represents the destination of the HTTP message channel.</param>
137-
/// <param name="handlers">An ordered list of <see cref="DelegatingHandler"/> instances to be invoked as part
137+
/// <param name="handlers">An ordered list of <see cref="DelegatingHandler"/> instances to be invoked as part
138138
/// of sending an <see cref="HttpRequestMessage"/> and receiving an <see cref="HttpResponseMessage"/>.
139-
/// The handlers are invoked in a top-down fashion. That is, the first entry is invoked first for
139+
/// The handlers are invoked in a top-down fashion. That is, the first entry is invoked first for
140140
/// an outbound request message but last for an inbound response message.</param>
141141
/// <returns>The HTTP message channel.</returns>
142142
public static HttpMessageHandler CreatePipeline(IEnumerable<DelegatingHandler> handlers, HttpMessageHandler innerHandler = null )

0 commit comments

Comments
 (0)