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