changed GetFormat to virtual
This commit is contained in:
parent
e74aa54d95
commit
f567258f14
|
|
@ -28,7 +28,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
|
|||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public string GetFormat(ActionContext context)
|
||||
public virtual string GetFormat(ActionContext context)
|
||||
{
|
||||
object obj;
|
||||
if (context.RouteData.Values.TryGetValue("format", out obj))
|
||||
|
|
@ -159,4 +159,4 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
|
|||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue