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

Add [FromHeader] for model binding #1671

Closed
rynowak opened this issue Dec 5, 2014 · 2 comments
Closed

Add [FromHeader] for model binding #1671

rynowak opened this issue Dec 5, 2014 · 2 comments

Comments

@rynowak
Copy link
Member

rynowak commented Dec 5, 2014

This is a new model binding attribute that specifies that the value should come from a header value on the request.

This will allow binding a header value on an action parameter or property (of a DTO) as a string, or string[] - based on the value of Request.Headers.Get(..)/GetValues(...)

@rynowak rynowak added this to the 6.0.0-beta2 milestone Dec 5, 2014
@rynowak rynowak self-assigned this Dec 5, 2014
@rynowak
Copy link
Member Author

rynowak commented Dec 8, 2014

9468d74

@jalbah
Copy link

jalbah commented Dec 16, 2014

Hi, I am a newbie and I don't know where to put my questions. I am just starting to play with vnext and when I try to compile the source code for MVC project I get always error, i.e:
Error CS1061 'IFileSystem' does not contain a definition for 'TryGetFileInfo' and no extension method 'TryGetFileInfo' accepting a first argument of type 'IFileSystem' could be found (are you missing a using directive or an assembly reference?) Microsoft.AspNet.Mvc.Razor.Host..NET Framework 4.5 ChunkInheritanceUtility.cs 61.

An instance of FileSytem is trying to use a method not existing. How is possible that happens? What am I missing?
I would appreciate any help.
Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants