33 references to SendFileAsync
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
967
await ctx.Response.
SendFileAsync
(tempFile, 0, null);
Microsoft.AspNetCore.Http.Extensions (1)
SendFileResponseExtensions.cs (1)
108
await response.
SendFileAsync
(file.PhysicalPath, offset, count, cancellationToken);
Microsoft.AspNetCore.Http.Extensions.Tests (6)
SendFileResponseExtensionsTests.cs (6)
26
await response.
SendFileAsync
("bob", 1, 3, CancellationToken.None);
42
await response.
SendFileAsync
("testfile1kb.txt", 1, 3, CancellationToken.None);
56
() => response.
SendFileAsync
("testfile1kb.txt", 1, 3, new CancellationToken(canceled: true)));
70
() => response.
SendFileAsync
("testfile1kb.txt", 1, 3, new CancellationToken(canceled: true)));
82
await response.
SendFileAsync
("testfile1kb.txt", 1, 3, CancellationToken.None);
97
await response.
SendFileAsync
("testfile1kb.txt", 1, 3, CancellationToken.None);
Microsoft.AspNetCore.Http.Results (1)
PhysicalFileHttpResult.cs (1)
156
return response.
SendFileAsync
(
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\PhysicalFileResultExecutor.cs (2)
91
return response.
SendFileAsync
(result.FileName,
96
return response.
SendFileAsync
(result.FileName,
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
61
await context.Response.
SendFileAsync
(path, 0, null);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
86
await context.Response.
SendFileAsync
(path, 0, null);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (20)
ResponseCachingTests.cs (2)
392
await httpContext.Response.
SendFileAsync
(_absoluteFilePath, 0, null, CancellationToken.None);
412
await httpContext.Response.
SendFileAsync
(_absoluteFilePath, 0, null, CancellationToken.None);
ResponseSendFileTests.cs (18)
315
await httpContext.Response.
SendFileAsync
(emptyFilePath, 0, null, CancellationToken.None);
340
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
341
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
358
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
359
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
379
var writeTask = httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
407
var writeTask = httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
434
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
436
var writeTask = httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
461
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
463
var writeTask = httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
502
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
507
httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token));
549
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null);
589
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
600
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, cts.Token);
641
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null);
650
await httpContext.Response.
SendFileAsync
(AbsoluteFilePath, 0, null, CancellationToken.None);