From 04f3e5283d50e1f6b11ec97f53c5b8495ea97d19 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Wed, 2 Jul 2014 09:14:37 -0700 Subject: [PATCH] Rename OnRequestAborted to RequestAborted. --- src/Microsoft.AspNet.StaticFiles/StaticFileContext.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.AspNet.StaticFiles/StaticFileContext.cs b/src/Microsoft.AspNet.StaticFiles/StaticFileContext.cs index 47c5cb7d14..a03a6c6fd5 100644 --- a/src/Microsoft.AspNet.StaticFiles/StaticFileContext.cs +++ b/src/Microsoft.AspNet.StaticFiles/StaticFileContext.cs @@ -319,14 +319,14 @@ namespace Microsoft.AspNet.StaticFiles var sendFile = _context.GetFeature(); if (sendFile != null && !string.IsNullOrEmpty(physicalPath)) { - await sendFile.SendFileAsync(physicalPath, 0, _length, _context.OnRequestAborted); + await sendFile.SendFileAsync(physicalPath, 0, _length, _context.RequestAborted); return; } Stream readStream = _fileInfo.CreateReadStream(); try { - await StreamCopyOperation.CopyToAsync(readStream, _response.Body, _length, _context.OnRequestAborted); + await StreamCopyOperation.CopyToAsync(readStream, _response.Body, _length, _context.RequestAborted); } finally { @@ -365,7 +365,7 @@ namespace Microsoft.AspNet.StaticFiles var sendFile = _context.GetFeature(); if (sendFile != null && !string.IsNullOrEmpty(physicalPath)) { - await sendFile.SendFileAsync(physicalPath, start, length, _context.OnRequestAborted); + await sendFile.SendFileAsync(physicalPath, start, length, _context.RequestAborted); return; } @@ -373,7 +373,7 @@ namespace Microsoft.AspNet.StaticFiles try { readStream.Seek(start, SeekOrigin.Begin); // TODO: What if !CanSeek? - await StreamCopyOperation.CopyToAsync(readStream, _response.Body, length, _context.OnRequestAborted); + await StreamCopyOperation.CopyToAsync(readStream, _response.Body, length, _context.RequestAborted); } finally {