Implemented interface members:
property
ContentType
Microsoft.AspNetCore.Http.IFileHttpResult.ContentType
property
ContentType
Microsoft.AspNetCore.Http.IContentTypeHttpResult.ContentType
1 write to ContentType
Microsoft.AspNetCore.Http.Results (1)
FileStreamHttpResult.cs (1)
70ContentType = contentType ?? ContentTypeConstants.BinaryContentType;
5 references to ContentType
Microsoft.AspNetCore.Http.Results (1)
FileStreamHttpResult.cs (1)
128ContentType,
Microsoft.AspNetCore.Http.Results.Tests (4)
HttpFileStreamResultTests.cs (2)
55Assert.Equal(expectedMediaType, result.ContentType); 78Assert.Equal(expectedMediaType, result.ContentType);
ResultsTests.cs (1)
312Assert.Equal(contentType ?? "application/octet-stream", fileStreamResult.ContentType);
TypedResultsTests.cs (1)
396Assert.Equal(contentType ?? "application/octet-stream", fileStreamResult.ContentType);