8 instantiations of FileContentResult
Microsoft.AspNetCore.Mvc.Core (6)
ControllerBase.cs (6)
1103
=> new
FileContentResult
(fileContents, contentType) { FileDownloadName = fileDownloadName };
1118
=> new
FileContentResult
(fileContents, contentType)
1138
return new
FileContentResult
(fileContents, contentType)
1160
return new
FileContentResult
(fileContents, contentType)
1183
return new
FileContentResult
(fileContents, contentType)
1207
return new
FileContentResult
(fileContents, contentType)
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
334
=> new
FileContentResult
(fileContents, contentType) { FileDownloadName = fileDownloadName };
PageModel.cs (1)
666
=> new
FileContentResult
(fileContents, contentType) { FileDownloadName = fileDownloadName };
32 references to FileContentResult
Microsoft.AspNetCore.Mvc.Core (24)
ControllerBase.cs (16)
1072
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
1074
public virtual
FileContentResult
File(byte[] fileContents, string contentType)
1086
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
1088
public virtual
FileContentResult
File(byte[] fileContents, string contentType, bool enableRangeProcessing)
1100
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
1102
public virtual
FileContentResult
File(byte[] fileContents, string contentType, string? fileDownloadName)
1115
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
1117
public virtual
FileContentResult
File(byte[] fileContents, string contentType, string? fileDownloadName, bool enableRangeProcessing)
1134
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
1136
public virtual
FileContentResult
File(byte[] fileContents, string contentType, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag)
1156
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
1158
public virtual
FileContentResult
File(byte[] fileContents, string contentType, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag, bool enableRangeProcessing)
1179
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
1181
public virtual
FileContentResult
File(byte[] fileContents, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag)
1203
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
1205
public virtual
FileContentResult
File(byte[] fileContents, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag, bool enableRangeProcessing)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
239
services.TryAddSingleton<IActionResultExecutor<
FileContentResult
>, FileContentResultExecutor>();
FileContentResult.cs (3)
20
/// Creates a new <see cref="
FileContentResult
"/> instance with
32
/// Creates a new <see cref="
FileContentResult
"/> instance with
66
var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<
FileContentResult
>>();
Infrastructure\FileContentResultExecutor.cs (4)
14
public partial class FileContentResultExecutor : FileResultExecutorBase, IActionResultExecutor<
FileContentResult
>
26
public virtual Task ExecuteAsync(ActionContext context,
FileContentResult
result)
53
/// <param name="result">The <see cref="
FileContentResult
"/>.</param>
56
protected virtual Task WriteFileAsync(ActionContext context,
FileContentResult
result, RangeItemHeaderValue? range, long rangeLength)
Microsoft.AspNetCore.Mvc.RazorPages (8)
PageBase.cs (4)
320
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
321
public virtual
FileContentResult
File(byte[] fileContents, string contentType)
332
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
333
public virtual
FileContentResult
File(byte[] fileContents, string contentType, string? fileDownloadName)
PageModel.cs (4)
652
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
653
public virtual
FileContentResult
File(byte[] fileContents, string contentType)
664
/// <returns>The created <see cref="
FileContentResult
"/> for the response.</returns>
665
public virtual
FileContentResult
File(byte[] fileContents, string contentType, string? fileDownloadName)