Yishai Galatzer
6aa1f84420
Add Service monitoring as middleware to make sure the monitoring doesn't affect autofac services counts
...
Scoping of three services
Caching of action binding context.
Make input formatters lazy
2014-06-16 19:03:30 -07:00
Ryan Nowak
d79943d30f
Fixing issues build/project issues that someone else missed.
2014-06-16 13:26:49 -07:00
harshgMSFT
10285d7d39
This additional constraint enables adding a route to the template (and potentially to the UseMvc method) without actually implementing the actual artifact.
...
For example without adding an area to a controller, a route can still be added to the template.
- Also added functional tests.
2014-06-16 11:24:22 -07:00
Yishai Galatzer
95aa6ad607
Add AutoFac to the MVC sample
2014-06-09 15:00:40 -07:00
Pranav K
59e419ba0a
Adding support for @Inject to Mvc
2014-06-09 13:43:08 -07:00
David Fowler
ade41533f1
Updated the Startup
2014-05-09 00:48:26 -07:00
Andrew Peters
f13865dedc
Updating copyright headers
2014-05-08 23:01:20 -07:00
Pranav K
076dedcca5
Reacting to package and namespace changes
2014-05-06 14:06:29 -07:00
harshgMSFT
9b79664e2f
Fixing Build break due to namespace move.
2014-05-06 10:04:58 -07:00
Ryan Nowak
abbaa11212
Incorporate name changes: HttpAbstractions
2014-05-05 17:14:08 -07:00
Ryan Nowak
490b6d1434
IServiceContainer changes should have added this
2014-05-02 19:03:32 -07:00
anpete
8208cd6b2f
Update file headers
2014-05-01 17:42:33 -07:00
harshgMSFT
3765abdfca
Adding Support for LinkGeneration for named Routes.
...
- Adding HtmlHelpers for route link generation.
- Controller Helpers
- UrlHelper and UrlHelperExtensions
2014-04-30 18:34:46 -07:00
harshgMSFT
a1f3c72e08
Updating the sample after namedRoute changes
2014-04-30 16:10:09 -07:00
Ryan Nowak
20c8dece7b
Adding IFilterFactory
...
This is a generalized factory/provider for filters - TypeFilterAttribute
and ServiceFilterAttribute are now implemented in terms of this interface.
2014-04-30 13:18:10 -07:00
David Fowler
05a2319d84
Moved BuilderExtensions to Microsoft.AspNet namespace
2014-04-18 00:51:27 -07:00
David Fowler
73b7509368
Updated to use new UseServices API
2014-04-17 21:13:43 -07:00
David Fowler
fba1b400fe
Removed comment
2014-04-17 20:00:06 -07:00
David Fowler
73e1386724
Added UseMvc extension method via IBuilder extensions.
2014-04-17 19:55:23 -07:00
David Fowler
93c9b3419e
Made some changes to the MvcApplication class
...
- Renamed it to MvcRouteHandler
- Removed required IServiceProvider ctor param.
- The HttpContext flows the application services through to MVC. This does
require a call to app.UseContainer in order for things to work but that should be fine.
This will be the pattern we use for all frameworks going forward and we'll need to have some
good error handling around this area when things aren't wired up properly.
2014-04-17 00:02:10 -07:00
David Fowler
4fc0b56dfa
Added extension method to ServiceCollection to register default services
2014-04-16 23:59:36 -07:00
Ryan Nowak
469414c419
Adding support for scoped services in WebFX
...
We'll create a scoped service provider if the middleware that does it
isn't there.
We resolve all of our stuff from the scoped service provider, allowing
users to plug in any scoped things they want.
Ported UrlHelper to be a scoped service.
2014-03-26 12:45:36 -07:00
David Fowler
ed36084c25
Remove ifdef for net45 in sample
2014-03-25 02:12:33 -07:00
Ryan Nowak
dc6843acf7
Move registration of nested provider infrastructure
...
The DI system has support for registering open generics now, so we can go
through that instead of directly through autofac.
2014-03-21 16:47:31 -07:00
Yishai Galatzer
cfb06c0de3
Areas feature - Phase I
...
1. Areas defined by the Area attribute
2. Areas are a routeconstraint on the actiondescriptor
3. Areas find pages through route values
Other changes:
1. Remove Path from ActionDescriptor - It doesn't make sense with this change
2. Add sample Area
2014-03-19 09:26:18 -07:00
Ryan Nowak
a5cb050b97
Using AutoFac to register open generic service types
2014-03-14 12:46:17 -07:00
David Fowler
930986d6a2
Migrate samples from hacky self host to helios
...
- MvcSample should be deleted and all new code should be written in MvcSample.Web
2014-03-14 10:25:13 -07: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
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
David Fowler
9dc79df9cf
Fixed core clr compilation error.
2014-03-05 01:04:23 -08:00
Yishai Galatzer
6244d55e1f
Rename MVC -> MVC.Core, MVC.Startup -> MVC
2014-03-02 23:16:18 -08:00
David Fowler
5ea11e396d
Added first core clr enabled sample.
2014-02-15 01:20:32 -08:00
David Fowler
125ca080b5
Added a sample web project
2014-02-14 03:03:02 -08:00