Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Can InputFormatterContext be replaced by ModelBindingContext #2330

Closed
@pranavkm

Description

@pranavkm

Today IInputFormatter get access to the ActionContext and the ModelType without getting access to all the properties that ModelBindingContext exposes. Could we replace it with ModelBindingContext so it's the same programming model when writing binders or formatters? Additionally, if we remove the dependency on ActionContext, we could change it so that formatters only rely on the ModelBinding assembly as opposed to Mvc.Core. Might make the layering a bit cleaner.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions