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)
70
ContentType
= contentType ?? ContentTypeConstants.BinaryContentType;
5 references to ContentType
Microsoft.AspNetCore.Http.Results (1)
FileStreamHttpResult.cs (1)
128
ContentType
,
Microsoft.AspNetCore.Http.Results.Tests (4)
HttpFileStreamResultTests.cs (2)
55
Assert.Equal(expectedMediaType, result.
ContentType
);
78
Assert.Equal(expectedMediaType, result.
ContentType
);
ResultsTests.cs (1)
312
Assert.Equal(contentType ?? "application/octet-stream", fileStreamResult.
ContentType
);
TypedResultsTests.cs (1)
396
Assert.Equal(contentType ?? "application/octet-stream", fileStreamResult.
ContentType
);