#20 - Enable SendFile on CoreClr.

This commit is contained in:
Chris Ross 2014-04-28 12:32:17 -07:00
parent c8af917927
commit e2d8020727
1 changed files with 0 additions and 4 deletions

View File

@ -119,9 +119,6 @@ namespace Microsoft.Net.Server
#else
_fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, bufferSize /*, useAsync: true*/); // Extremely expensive.
#endif
#if !NET45
throw new NotImplementedException();
#else
long length = _fileStream.Length; // Expensive
if (offset < 0 || offset > length)
{
@ -189,7 +186,6 @@ namespace Microsoft.Net.Server
_dataChunks[2].fromMemory.pBuffer = Marshal.UnsafeAddrOfPinnedArrayElement(CRLF, 0);
}
}
#endif
}
internal ResponseStream ResponseStream