mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
extracting all the cross-platform setup of HttpMessageHandler into
a less awful class
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Octokit
|
||||
/// <param name="credentialStore">Provides credentials to the client when making requests</param>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
|
||||
public Connection(ProductHeaderValue productInformation, Uri baseAddress, ICredentialStore credentialStore)
|
||||
: this(productInformation, baseAddress, credentialStore, new HttpClientAdapter(), new SimpleJsonSerializer())
|
||||
: this(productInformation, baseAddress, credentialStore, new HttpClientAdapter(HttpMessageHandlerFactory.GetHandler), new SimpleJsonSerializer())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user