#415 Use a cross-platform friendly HttpClient for CoreCLR.

This commit is contained in:
Chris R 2015-09-01 09:48:59 -07:00
parent 6915db67f2
commit 4b1f710c39
9 changed files with 9 additions and 14 deletions

View File

@ -99,7 +99,7 @@ namespace Microsoft.AspNet.Authentication.JwtBearer
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
}
#else
new WinHttpHandler();
new HttpClientHandler();
#endif
return handler;
}

View File

@ -19,7 +19,7 @@
},
"dnxcore50": {
"dependencies": {
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
"System.Net.Http": "4.0.1-beta-*"
}
}
}

View File

@ -11,11 +11,6 @@
},
"frameworks": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"System.Dynamic.Runtime": "4.0.11-beta-*",
"System.ObjectModel": "4.0.11-beta-*"
}
}
"dnxcore50": { }
}
}

View File

@ -115,7 +115,7 @@ namespace Microsoft.AspNet.Authentication.OAuth
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
}
#else
new WinHttpHandler();
new HttpClientHandler();
#endif
return handler;
}

View File

@ -19,7 +19,7 @@
},
"dnxcore50": {
"dependencies": {
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
"System.Net.Http": "4.0.1-beta-*"
}
}
}

View File

@ -167,7 +167,7 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
}
#else
new WinHttpHandler();
new HttpClientHandler();
#endif
return handler;
}

View File

@ -21,7 +21,7 @@
"dnxcore50": {
"dependencies": {
"System.Collections.Specialized": "4.0.1-beta-*",
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
"System.Net.Http": "4.0.1-beta-*"
}
}
}

View File

@ -109,7 +109,7 @@ namespace Microsoft.AspNet.Authentication.Twitter
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
}
#else
new WinHttpHandler();
new HttpClientHandler();
#endif
return handler;
}

View File

@ -18,7 +18,7 @@
},
"dnxcore50": {
"dependencies": {
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
"System.Net.Http": "4.0.1-beta-*"
}
}
}