Downtarget Kestrel to NETStandard 1.3
This commit is contained in:
parent
b6ceac559a
commit
badbc7c8f7
|
|
@ -115,7 +115,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Https
|
||||||
return certificate2;
|
return certificate2;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if NETSTANDARD1_5
|
#if NETSTANDARD1_3
|
||||||
// conversion X509Certificate to X509Certificate2 not supported
|
// conversion X509Certificate to X509Certificate2 not supported
|
||||||
// https://github.com/dotnet/corefx/issues/4510
|
// https://github.com/dotnet/corefx/issues/4510
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": {},
|
"net451": {},
|
||||||
"netstandard1.5": {
|
"netstandard1.3": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Net.Security": "4.0.0-*"
|
"System.Net.Security": "4.0.0-*"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
|
||||||
{
|
{
|
||||||
public static class TaskUtilities
|
public static class TaskUtilities
|
||||||
{
|
{
|
||||||
#if NETSTANDARD1_5
|
#if NETSTANDARD1_3
|
||||||
public static Task CompletedTask = Task.CompletedTask;
|
public static Task CompletedTask = Task.CompletedTask;
|
||||||
#else
|
#else
|
||||||
public static Task CompletedTask = Task.FromResult<object>(null);
|
public static Task CompletedTask = Task.FromResult<object>(null);
|
||||||
|
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
|
||||||
|
|
||||||
public static Task GetCancelledTask(CancellationToken cancellationToken)
|
public static Task GetCancelledTask(CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
#if NETSTANDARD1_5
|
#if NETSTANDARD1_3
|
||||||
return Task.FromCanceled(cancellationToken);
|
return Task.FromCanceled(cancellationToken);
|
||||||
#else
|
#else
|
||||||
var tcs = new TaskCompletionSource<object>();
|
var tcs = new TaskCompletionSource<object>();
|
||||||
|
|
@ -28,7 +28,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
|
||||||
|
|
||||||
public static Task<int> GetCancelledZeroTask(CancellationToken cancellationToken = default(CancellationToken))
|
public static Task<int> GetCancelledZeroTask(CancellationToken cancellationToken = default(CancellationToken))
|
||||||
{
|
{
|
||||||
#if NETSTANDARD1_5
|
#if NETSTANDARD1_3
|
||||||
// Make sure cancellationToken is cancelled before passing to Task.FromCanceled
|
// Make sure cancellationToken is cancelled before passing to Task.FromCanceled
|
||||||
if (!cancellationToken.IsCancellationRequested)
|
if (!cancellationToken.IsCancellationRequested)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"netstandard1.5": {
|
"netstandard1.3": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Collections": "4.0.11-*",
|
"System.Collections": "4.0.11-*",
|
||||||
"System.Diagnostics.Debug": "4.0.11-*",
|
"System.Diagnostics.Debug": "4.0.11-*",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue