4 references to File
Microsoft.AspNetCore.Http.Results (1)
Results.cs (1)
309/// This API is an alias for <see cref="File(byte[], string, string?, bool, DateTimeOffset?, EntityTagHeaderValue?)"/>.</para>
Microsoft.AspNetCore.Http.Results.Tests (3)
ResultsTests.cs (3)
271_ => Results.File(contents, contentType, fileDownloadName, enableRangeProcessing, lastModified, entityTag) 350Assert.Throws<ArgumentNullException>("fileContents", () => Results.File(default(byte[]))); 1752(() => Results.File(new byte[0], null, null, false, null, null), typeof(FileContentHttpResult)),