4 references to File
Microsoft.AspNetCore.Http.Results (2)
Results.cs (1)
300
=> TypedResults.
File
(fileContents, contentType, fileDownloadName, enableRangeProcessing, lastModified, entityTag);
TypedResults.cs (1)
283
/// This API is an alias for <see cref="
File
(byte[], string, string?, bool, DateTimeOffset?, EntityTagHeaderValue?)"/>.</para>
Microsoft.AspNetCore.Http.Results.Tests (2)
TypedResultsTests.cs (2)
249
_ => TypedResults.
File
(contents, contentType, fileDownloadName, enableRangeProcessing, lastModified, entityTag)
324
Assert.Throws<ArgumentNullException>("fileContents", () => TypedResults.
File
(default(byte[])));