16 references to VirtualFileResult
FilesWebSite (3)
Controllers\EmbeddedFilesController.cs (3)
14
return new
VirtualFileResult
("/Greetings.txt", "text/plain")
24
return new
VirtualFileResult
("/Greetings.txt", "text/plain")
33
var file = new
VirtualFileResult
("/Greetings.txt", "text/plain")
Microsoft.AspNetCore.Mvc.Core (6)
ControllerBase.cs (6)
1434
=> new
VirtualFileResult
(virtualPath, contentType) { FileDownloadName = fileDownloadName };
1450
=> new
VirtualFileResult
(virtualPath, contentType)
1470
return new
VirtualFileResult
(virtualPath, contentType)
1492
return new
VirtualFileResult
(virtualPath, contentType)
1515
return new
VirtualFileResult
(virtualPath, contentType)
1539
return new
VirtualFileResult
(virtualPath, contentType)
Microsoft.AspNetCore.Mvc.Core.Test (5)
VirtualFileResultTest.cs (5)
26
var result = new
VirtualFileResult
(path, "text/plain");
41
var result = new
VirtualFileResult
(path, contentType);
55
var result = new
VirtualFileResult
("some-path", "text/plain");
72
var result = new
VirtualFileResult
("some-path", "text/plain") { FileProvider = fileProvider };
91
var result = new
VirtualFileResult
(path, contentType)
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
378
=> new
VirtualFileResult
(virtualPath, contentType) { FileDownloadName = fileDownloadName };
PageModel.cs (1)
710
=> new
VirtualFileResult
(virtualPath, contentType) { FileDownloadName = fileDownloadName };