Commit Graph

39740 Commits

Author SHA1 Message Date
Anuraj 680cdf4d57 Update Project.json to download TagHelpers assembly 2014-11-26 16:00:07 -08:00
Ryan Nowak 8ce069f56a [Fixes #393] [Design] Update ViewComponent result apis to be consistent with Controller
1. Updated ViewComponent to exposes similar properties to the existing ones in controller where
appropiate. We've left out Resolver for being a bad pattern (just inject the dependency on the constructor
or use Context.RequestServices to access it if needed) and Response as although available through the Context
property, it shouldn't be used/modified in a ViewComponent.

2. Updated ViewViewComponentResult to follow a similar pattern as ViewResult where the constructor is
parameterless and elements like ViewEngine are resolved during execution if the user does not set the
associated property on the object.

3. Updated ExecuteAsync in JsonViewComponentResult to remove the unnecessary pragma and async keyword from the
signature and to use Task.FromResult(true) instead.

4. Cleaned up ViewViewComponentResult tests.
2014-11-26 15:56:06 -08:00
Harsh Gupta d2aff42e25 Adding FromServicesAttribute. 2014-11-26 15:35:08 -08:00
Praburaj 1bc4e21c22 Addressing IFileSystem breaking changes
This PR is to address the breaking changes introduced with https://github.com/aspnet/FileSystem/pull/20

@Tratcher @pranavkm
2014-11-26 12:24:56 -08:00
Ryan Nowak ff3282827a Fix a test based on the resolution of #1609
This old test (from WSR) was commented out pending the resolution of
issue #1609.

I've updated the test to track the current semantics.
2014-11-26 11:48:01 -08:00
Pranav K b8626a75ca Updating Elm to depend on Razor instead of Mvc.Razor
* Removing dependencies that are transitively included.
2014-11-25 17:07:04 -08:00
Praburaj 86432baac7 File names and line numbers don't appear on mono error page
https://github.com/aspnet/Diagnostics/issues/54

Fix is to handle the retrievel of file name with different separators on .net and mono.
2014-11-25 15:15:46 -08:00
SonjaKhan ce59419893 elm logger 2014-11-25 14:58:04 -08:00
Yishai Galatzer 2eef4dd3cf Remove ControllerDescriptor and fix ControllerActionDescriptor to pick the right type for the display name. 2014-11-25 13:54:57 -08:00
ajcvickers e6fdb8cbd2 React to EF dynamic services changes 2014-11-25 13:38:22 -08:00
Yishai Galatzer de50d3dbf9 Move MvcOptions to the root folder (reviewed by @pranavkm) 2014-11-25 12:12:47 -08:00
Ajay Bhargav Baaskaran 9f1cb655f6 matched classnames with filenames 2014-11-25 11:21:17 -08:00
Victor Hurdugaci 1120863c84 Add schema version to kproj files 2014-11-25 11:15:15 -08:00
Victor Hurdugaci f505d52771 Add schema version to kproj files 2014-11-25 11:10:52 -08:00
Victor Hurdugaci f6aa12cfa8 Add schema version to kproj files 2014-11-25 11:08:17 -08:00
Victor Hurdugaci fb9fc12cec Add schema version to kproj files 2014-11-25 11:06:08 -08:00
Victor Hurdugaci 0a71973513 Add schema version to kproj files 2014-11-25 11:03:55 -08:00
Victor Hurdugaci 8b93a0c018 Add schema version to kproj files 2014-11-25 11:01:35 -08:00
Victor Hurdugaci 810146115b Add schema version to kproj files 2014-11-25 11:00:49 -08:00
Victor Hurdugaci 99b5f430ff Add schema version to kproj files 2014-11-25 10:57:58 -08:00
Victor Hurdugaci 4a2dd8f279 Add schema version to kproj files 2014-11-25 10:54:18 -08:00
Victor Hurdugaci 2801adb044 Add schema version to kproj files 2014-11-25 10:53:12 -08:00
Victor Hurdugaci 7569703906 Add schema version to kproj files 2014-11-25 10:49:23 -08:00
Victor Hurdugaci bf0c8c95b0 Add schema version to kproj files 2014-11-25 10:47:58 -08:00
Victor Hurdugaci eb99bf25a3 Add schema version to kproj files 2014-11-25 10:39:01 -08:00
Victor Hurdugaci 0c841f934e Add schema version to kproj files 2014-11-25 10:36:04 -08:00
Harsh Gupta d00c7ef597 Adding support for property level binding using IBinderMetadata and enabling FromXXX attributes to be decorated on properties. 2014-11-24 21:33:02 -08:00
Hao Kung a475177376 Fix samples 2014-11-24 18:00:48 -08:00
Hao Kung a9827a4310 GetDefaultServices -> AddHosting
Also stop adding options
2014-11-24 17:33:11 -08:00
Hao Kung d8041cbbae React to identity changes 2014-11-24 16:41:16 -08:00
Hao Kung f3e9381f16 GetServices -> AddDataProtection 2014-11-24 16:40:13 -08:00
Hao Kung 27432d9453 React to GetDefaultServices/TryAdd changes 2014-11-24 16:38:45 -08:00
Hao Kung 21a6f44c38 GetDefaultServices -> AddRouting with TryAdd 2014-11-24 16:37:10 -08:00
Hao Kung 240ed82b31 React to AddDataProtection change 2014-11-24 16:32:33 -08:00
Hao Kung d2c12e85b8 Samples fix for missing return url
Fixes: https://github.com/aspnet/Identity/issues/262
2014-11-24 16:29:02 -08:00
Suhas Joshi f61b1496b2 Updating commands for non windows machines 2014-11-24 14:27:43 -08:00
Hao Kung d4733f9238 React to GetDefaultServices changes 2014-11-24 13:41:14 -08:00
Hao Kung 66f9803d06 Replace IIdentityMessageService with IUserMessageProvider 2014-11-24 13:41:02 -08:00
NTaylorMullen c947e9ffaa Changed TagHelper attributes to be SpanKind.Code if not string typed.
- Also added tests to validate that non string TagHelper attributes inherit the SpanKind.COde behavior.
- Removed a block wrapping around single markup spans.
2014-11-24 11:21:20 -08:00
N. Taylor Mullen e7941b5a84 React to aspnet/Razor#210 changes.
- Added the ErrorSink pass through values for our overridden classes.
2014-11-24 11:16:27 -08:00
N. Taylor Mullen 0d60da296d Add and modify tests to validate TagHelperDescriptorResolver doesn't throw.
- Modified existing tests that expected the resolvers to throw to no longer throw.
- Added new test to validate that unexpected errors that are thrown are also handled.

#210
2014-11-24 10:30:11 -08:00
N. Taylor Mullen ed9c432889 Modify TagHelperDescriptorResolver and dependencies to not throw.
- Changed the TagHelperDescriptorResolver, TagHelperTypeResolver and AddOrRemoveTagHelperSpanVisitor to not throw when they're unable to understand the users directive lookup text.
- This involved utilizing the new ParserErrorSink to capture errors found during TagHelperDescriptor resolution.

#210
2014-11-24 10:30:01 -08:00
Pranav K aebfecdf87 Reacting to DI changes 2014-11-24 10:10:51 -08:00
David Fowler 075edc516c Handle null configuration in HostingServices.Create 2014-11-23 22:48:28 -08:00
Doug Bunting a42fa3c800 Touch up tag helper sample
- provide list of users on Index page
 - currently uses only the `<a/>` helper but left `<label/>` and `<input/>` comments
- get date picker working on Create and Edit pages
 - add `[DataType]` annotation
 - use format browsers recognize

nits:
- move "Create New" link to the bottom of `~/Home/Index`
- correct code comment about assigning to a `ViewBag` property
2014-11-22 11:42:17 -08:00
Doug Bunting 823229279a Extend MVC Sample functional test to include all Home views 2014-11-22 10:36:46 -08:00
Doug Bunting ab8a77bb70 Avoid NREs in MVC sample
- see e.g. results of `GET ~/Home/Post`
- use parentheses to avoid `?` confusing Razor

nit: remove unused Home/Test.cshtml view
2014-11-22 10:36:39 -08:00
Glenn Condron bd5c07d66a Move default hosting environment code 2014-11-21 17:04:04 -08:00
Hao Kung 85530742ef Replace AddDefaultIdentity
Break it into
AddIdentity<>.AddEntityFrameworkStores.AddDefaultTokenProviders()
2014-11-21 15:10:35 -08:00
Hao Kung 2f02fc6091 Fix SelfHost to default to config environment
Fixes MusicStore
2014-11-21 15:01:52 -08:00