33 references to SendFileAsync
InProcessWebSite (1)
Microsoft.AspNetCore.Http.Extensions (1)
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)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (20)
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);