Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev
This commit is contained in:
commit
f536c023f0
|
|
@ -26,6 +26,7 @@ nuget.exe
|
|||
*.sln.ide
|
||||
project.lock.json
|
||||
/.vs/
|
||||
.vscode/
|
||||
.build/
|
||||
.testPublish/
|
||||
launchSettings.json
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<Import Project="..\..\build\dependencies.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net46;netcoreapp2.0</TargetFrameworks>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<Description>ASP.NET Core response caching middleware abstractions and feature interface definitions.</Description>
|
||||
<TargetFramework>netstandard1.3</TargetFramework>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<PackageTags>aspnetcore;cache;caching</PackageTags>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<Description>ASP.NET Core middleware for caching HTTP responses on the server.</Description>
|
||||
<TargetFramework>netstandard1.3</TargetFramework>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<NoWarn>$(NoWarn);CS1591</NoWarn>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
|
|
|
|||
|
|
@ -183,19 +183,12 @@ namespace Microsoft.AspNetCore.ResponseCaching.Internal
|
|||
}
|
||||
}
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
#else
|
||||
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
#endif
|
||||
{
|
||||
return StreamUtilities.ToIAsyncResult(WriteAsync(buffer, offset, count), callback, state);
|
||||
}
|
||||
#if NETSTANDARD1_3
|
||||
public void EndWrite(IAsyncResult asyncResult)
|
||||
#else
|
||||
|
||||
public override void EndWrite(IAsyncResult asyncResult)
|
||||
#endif
|
||||
{
|
||||
if (asyncResult == null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -140,11 +140,7 @@ namespace Microsoft.AspNetCore.ResponseCaching.Internal
|
|||
return byteRead;
|
||||
}
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
public IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
#else
|
||||
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
#endif
|
||||
{
|
||||
var tcs = new TaskCompletionSource<int>(state);
|
||||
|
||||
|
|
@ -176,11 +172,7 @@ namespace Microsoft.AspNetCore.ResponseCaching.Internal
|
|||
return tcs.Task;
|
||||
}
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
public int EndRead(IAsyncResult asyncResult)
|
||||
#else
|
||||
public override int EndRead(IAsyncResult asyncResult)
|
||||
#endif
|
||||
{
|
||||
if (asyncResult == null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -190,20 +190,12 @@ namespace Microsoft.AspNetCore.ResponseCaching.Internal
|
|||
_length++;
|
||||
}
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
#else
|
||||
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
#endif
|
||||
{
|
||||
return StreamUtilities.ToIAsyncResult(WriteAsync(buffer, offset, count), callback, state);
|
||||
}
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
public void EndWrite(IAsyncResult asyncResult)
|
||||
#else
|
||||
public override void EndWrite(IAsyncResult asyncResult)
|
||||
#endif
|
||||
{
|
||||
if (asyncResult == null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
<Import Project="..\..\build\common.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.0;net46</TargetFrameworks>
|
||||
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
Loading…
Reference in New Issue