3 instantiations of FileContentHttpResult
Microsoft.AspNetCore.Http.Results (3)
TypedResults.cs (3)
267return new(fileContents, contentType) 302return new(contents, contentType) 332=> new(contents, contentType)
15 references to FileContentHttpResult
Microsoft.AspNetCore.Http.Results (9)
FileContentHttpResult.cs (3)
18/// Creates a new <see cref="FileContentHttpResult"/> instance with 30/// Creates a new <see cref="FileContentHttpResult"/> instance with 46/// Creates a new <see cref="FileContentHttpResult"/> instance with the provided values.
TypedResults.cs (6)
256/// <returns>The created <see cref="FileContentHttpResult"/> for the response.</returns> 257public static FileContentHttpResult File( 291/// <returns>The created <see cref="FileContentHttpResult"/> for the response.</returns> 292public static FileContentHttpResult Bytes( 324/// <returns>The created <see cref="FileContentHttpResult"/> for the response.</returns> 325public static FileContentHttpResult Bytes(
Microsoft.AspNetCore.Http.Results.Tests (6)
FileContentResultTests.cs (1)
22var result = new FileContentHttpResult(buffer, contentType)
ResultsTests.cs (4)
268var result = bytesOrFile switch 272} as FileContentHttpResult; 1738(() => Results.Bytes(new byte[0], null, null, false, null, null), typeof(FileContentHttpResult)), 1752(() => Results.File(new byte[0], null, null, false, null, null), typeof(FileContentHttpResult)),
TypedResultsTests.cs (1)
246var result = bytesOrFile switch