Make GetSupportedContentTypes on InputFormatter vitual
This commit is contained in:
parent
a33369acd8
commit
63354e25a8
|
|
@ -109,7 +109,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
|
|||
public abstract Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context);
|
||||
|
||||
/// <inheritdoc />
|
||||
public IReadOnlyList<string> GetSupportedContentTypes(string contentType, Type objectType)
|
||||
public virtual IReadOnlyList<string> GetSupportedContentTypes(string contentType, Type objectType)
|
||||
{
|
||||
if (!CanReadType(objectType))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue