Commit Graph

150 Commits

Author SHA1 Message Date
Ryan Nowak 12985c19ee CR feedback 2014-03-12 10:57:47 -07:00
Ryan Nowak 0ce2c511d4 Adding URL generation to WebFX for controllers and views
This follows a similar pattern to html helpers - a minimal basis interface
that performs the main functionality, and a set of extension methods that
make up the rich API.
2014-03-12 10:57:46 -07:00
Yishai Galatzer 9af7c2bbfb remove usings, fix spacing 2014-03-11 13:49:26 -07:00
Ryan Nowak 5867a6a5fc CR feedback that didnt get merged 2014-03-11 13:06:01 -07:00
Yishai Galatzer ed4d29042a Remove unused/non exiting service from RazorViewEnginer
Rename PathBaseViewFactory.cs to match the class name VirtualPathViewFactory
2014-03-10 23:32:55 -07:00
David Fowler e991e86863 Updated roslyn compilation to use new host interface. 2014-03-10 23:17:52 -07:00
David Fowler 3e049fed75 Fixed compilation errors in VS 2014-03-10 23:04:31 -07:00
Yishai Galatzer 6f0151ba5e CR Feedback, add ordering sample to the MVCSample.
null result handling in ActionResultFilterEndPoint
2014-03-10 22:13:06 -07:00
Yishai Galatzer 8ff65267f9 remove comment 2014-03-10 22:13:05 -07:00
Yishai Galatzer 9d3e5b5a81 Rename FilterDescriptorComparer to FilterDescriptorOrderComparer 2014-03-10 22:13:04 -07:00
Yishai Galatzer 28e0792db6 CR feedback 2014-03-10 22:13:03 -07:00
Yishai Galatzer 7ddf8a7bdb Move global filters addition to AD creation time
Add origin, and simplify sorting.
Add type filter
2014-03-10 22:13:02 -07:00
Pranav K 9132d32fa4 Renaming IsCompatibleObject to IsCompatibleWith to match definition 2014-03-10 17:14:35 -07:00
Ryan Nowak 86f18f5da7 Moving ViewContext to rendering, breaking coupling to RequestContext 2014-03-10 16:15:46 -07:00
Pranav K 07974b44e2 Adding unit tests for TypeExtensions.IsCompatibleObject 2014-03-10 16:09:02 -07:00
dougbu 59eaa8f642 Fix 4 unit test failures
- NRE in TypeExtensions.IsCompatibleWith()
- ComplexModelDtoResultTest.Constructor_ThrowsIfValidationNodeIsNull() won't work w/o validation
- BindModel_Error_FormatExceptionsTurnedIntoStringsInModelState() looking for wrong message
- BindModel_Error_FormatExceptionsTurnedIntoStringsInModelState_ErrorNotAddedIfCallbackReturnsNull() a dupe
- Also add [NotNull] attributes in TypeExtensions
2014-03-10 12:27:32 -07:00
Pranav K 123089d5c7 General razor clean up
* Change Razor compilation to use ApplicationBasePath to determine the
  app root
* Change class name generation to be based on app-relative path.
2014-03-10 11:56:07 -07:00
Ryan Nowak 2731caf476 Fix API breaking change from routing 2014-03-10 10:40:15 -07:00
David Fowler e4e665075c Removed unused interface IMetadataReferenceProvider 2014-03-09 01:39:07 -08:00
David Fowler 34641d21e6 Added code path for rendering html encoded content on K 2014-03-08 23:14:40 -08:00
David Fowler 282ccd6999 Remove duplicate paths 2014-03-08 21:12:01 -08:00
David Fowler e62e5a2bef Simplify how we pick dependencies for razor compilation 2014-03-08 17:15:16 -08:00
David Fowler bda7dd8d2d Made razor work with core clr 2014-03-08 15:56:01 -08:00
David Fowler b482a9e3cb Made roslyn based compilation of razor files work
- Now that services are being flowed through the entire stack
we can nuke the csc service and always use the roslyn based compilation for views
- The RoslynCompilationService is still very much a prototype but it's a good
 step to see what other services might may or may not need to flow.
- Removed the PhysicalFileSystem construction from Mvc itself. This will come from
 the hosting layer and is newed up temporarily in the PathBasedViewFactory itself.
2014-03-08 15:16:44 -08:00
David Fowler 5de1ae578d Updated common 2014-03-08 01:22:35 -08:00
David Fowler 360f81d0a8 Added required packages for K 2014-03-08 01:10:02 -08:00
Pranav K 574ce6de98 Query and route value provider factories are added to service container
multiple times
2014-03-07 15:08:28 -08:00
Pranav K 28b7597779 Introducing NotNullAttribute for null argument checks 2014-03-07 14:03:28 -08:00
David Fowler eb61728107 Fix webfx compile error.
- Assembly.Load(byte[]) has been removed
- Added IAssemblyLoaderEngine type that flows from the host
2014-03-06 22:11:10 -08:00
Stephen Halter 4d1768ce3c Use the ServiceDescriber class from the DI project in GetDefaultServices 2014-03-06 17:44:54 -08:00
Yishai Galatzer bcfccbd105 Remove allow anonymous (will happen as a separate feature) 2014-03-06 17:06:21 -08:00
Yishai Galatzer 5503aa7b4a Remove comment 2014-03-06 17:02:49 -08:00
Yishai Galatzer 1bcd35f5f1 Code cleanup 2014-03-06 17:02:48 -08:00
Yishai Galatzer 7cf40c8a50 CR feedback 2014-03-06 17:02:47 -08:00
Yishai Galatzer a55a71a4f8 ResultFilter attribute added to sample 2014-03-06 17:02:46 -08:00
Yishai Galatzer 772f833dc9 Action filters & Authorization Filters working 2014-03-06 17:02:45 -08:00
Yishai Galatzer 6fed92695b Filter execution 2014-03-06 17:01:40 -08:00
Yishai Galatzer f669c1c00e Cleanup & Renames 2014-03-06 17:00:47 -08:00
Yishai Galatzer 8c5db4fdfa Action/ActionResult/ExceptionFilterAttribute(s)
AllowAnonymousAttribute
Name cleanup in ReflectionActionDescriptorProvider
2014-03-06 17:00:47 -08:00
Yishai Galatzer 1783a06dc0 Filter discovery 2014-03-06 17:00:46 -08:00
Yishai Galatzer 4d90d590a9 Default filter provider, instantiates and merges all filters pre action invocation. 2014-03-06 17:00:45 -08:00
Yishai Galatzer 4bb66937e3 Action/ActionResult/ExceptionFilterAttribute(s)
AllowAnonymousAttribute
Name cleanup in ReflectionActionDescriptorProvider
2014-03-06 17:00:44 -08:00
Yishai Galatzer 457016a6da Add the actual filters interface signatures,
Add the AuthorizationFilterAttribute
2014-03-06 17:00:43 -08:00
Yishai Galatzer 75bccbae21 Filter discovery 2014-03-06 17:00:42 -08:00
Yishai Galatzer dc6b1b1a4a Context + ActionDescriptor + IFilter marker 2014-03-06 17:00:41 -08:00
Ryan Nowak 318c19b2f9 Issue #39 move init code into controller factory 2014-03-06 12:44:36 -08:00
Ryan Nowak 9d0cea17dd Changes due to changes in routing take 2 2014-03-06 12:26:09 -08:00
Ryan Nowak 905e84ab0a Changes in WebFx for compatibility with routing 2014-03-05 20:51:41 -08:00
Pranav K 914d8e8a3b Updating DI to use ServiceDescriptors
Fixes #25
2014-03-05 15:59:33 -08:00
Ryan Nowak 1cb8a049f2 This is a TEMPORARY fix to unblock WebFX samples.
More changes are coming to the routing API surface, so this will be
cleaned up with a final version soon.
2014-03-05 14:40:37 -08:00