Commit Graph

43822 Commits

Author SHA1 Message Date
jacalvar 5246125cb7 [Fixes #4087] Add AddViewComponentsAsServices() and ServiceBasedViewComponentActivator
* Added ViewComponentFeture and ViewComponentFeatureProvider to perform view component discovery.
* Changed view component discovery to use application parts.
* Changed ViewComponentDescriptorProvider to make use of Application parts.
* Added AddViewComponentsAsServices method on IMvcBuilder that performs view component
  discovery through the ApplicationPartManager and registers those view components as
  services in the service collection. Assemblies should be added to the ApplicationPartManager
  in order to discover view components in them in them.
2016-04-01 10:55:04 -07:00
Pranav K 87e89befc8 Revert "Updating to the newest Roslyn packages"
This reverts commit 50af106b6a.
2016-04-01 10:44:33 -07:00
ryanbrandenburg af46fec11f Allow a 'Gate branch' which is built instead of dev if it exists 2016-04-01 09:44:32 -07:00
jacalvar 0d0aad41f5 [Fixes #4014] Add overload to AddControllerAsServices that uses the default controller discovery logic.
* Added ControllerFeature and ControllerFeatureProvider to perform controller discovery.
* Changed controller discovery to use application parts.
* Changed ControllerActionDescriptorProvider to make use of Application parts.
* Simplified AddControllerAsServices to not accept any parameter and perform
  controller discovery through the ApplicationPartManager in the IMvcBuilder
  and IMvcCoreBuilder. Assemblies should be added to the ApplicationPartManager
  in order to discover controllers in them.
2016-04-01 09:29:37 -07:00
Ryan Nowak 37c8f5de70 Revert "Add antiforgery middleware"
This reverts commit 4629148519.
2016-04-01 09:10:33 -07:00
Pranav K 50af106b6a Updating to the newest Roslyn packages 2016-04-01 07:11:50 -07:00
Pranav K 4788506b57 Reacting to CLI breaking change 2016-04-01 06:41:43 -07:00
Pranav K cb70183b03 More experiments with flow id 2016-04-01 06:38:08 -07:00
Pranav K 63ac7210ce Don't run restore in #initialize 2016-03-31 22:23:19 -07:00
jacalvar 2acc2b0a03 Return IServiceCollection from AddLocalization extension methods 2016-03-31 19:27:34 -07:00
Mike Harder 228c34b500 Remove duplicate calls to FrameRequestHeaders and FrameResponseHeaders ctors (#695) 2016-03-31 17:34:59 -07:00
Chris R ac12319cd7 #333 Add doc comments for feature interfaces. 2016-03-31 16:13:08 -07:00
= 6b6c658f6c Resolve test application paths more robustly
This fixes tests on Mono for full framework
2016-03-31 15:06:28 -07:00
BrennanConroy 16e2788b6b Appveyor 2016-03-31 13:48:42 -07:00
BrennanConroy b12a97146b Add travis and Nginx 2016-03-31 13:48:42 -07:00
BrennanConroy 867b3b42cc Functional tests run serially 2016-03-31 13:33:57 -07:00
Hao Kung 4d6ad51f8a Add fallback logging for username in AuthZ 2016-03-31 13:09:32 -07:00
Chris R 3a97a6bdfd #602 Invoke APM callbacks on the threadpool. 2016-03-31 12:35:20 -07:00
Ryan Nowak 144766f2e3 Simplify BindAttribute - rename PredicateProvider
This change renames IPropertyBindingPredicateProvider to
IPropertyFilterProvider. The changes here are mostly renames of
parameters/variables from predicate -> propertyFilter. I did a
find+replace and left the term 'predicate' in some of the docs because it
refers to a predicate in the abstract sense.

This change also simplifies BindAttribute and removes support for type
activation.
2016-03-31 12:34:02 -07:00
Stephen Halter c567e4814a Clean up Travis builds
- No longer build libuv in .travis.yml
- The Ubuntu libuv build should now be taken from http://github.com/aspnet/libuv-build
- Remove unneeded packages from .travis.yml
- Stop skipping mono tests
2016-03-31 12:25:01 -07:00
jacalvar 1bd66ffda0 [Fixes #4089] Add support for application parts
This commit introduces application parts as a concept on MVC.

An application part is an abstraction that allows you to expose some
feature or corncern in a way that is decoupled from their underlying source.
Examples of this include types in an assembly, emdeded resources, files on
disk etc.

Application parts are configured during startup by adding or removing them from
the application part manager available as part of IMvcBuilder and IMvcCoreBuilder.

The application part manager provides the ability to populate features from the
list of available application parts by using a list of application feature providers.
Application feature providers are responsible for populating a given feature given a
list of application parts.

Examples of application providers can be a ControllerFeatureProvider
that goes through the list of application parts, sees which one of those parts exposes types,
determines which of those types are controller types, and adds them to a ControllerFeature
that holds a list of all the types that will be considered controllers in the application.
2016-03-31 12:14:04 -07:00
David Fowler 7eb34ad257 Update project.json
Fixed System.Runtime.Serialization.Primitives version
2016-03-31 12:08:59 -07:00
Kiran Challa 044dab1a70 Revert "Temporarily comment out flaky google login scenario tests to unblock build"
This reverts commit 65f24a3fc7.
2016-03-31 11:42:57 -07:00
mnltejaswini 7fbd407ad5 [Perf] Rewrite ExpressionHelper.GetExpressionText using StringBuilder 2016-03-31 11:26:37 -07:00
Kiran Challa 4d9b7edfd8 Revert the temporary fix of HttpClient where cookies were not being sent as part of redirect request 2016-03-31 11:18:50 -07:00
John Luo a587270b61 Fix build 2016-03-31 11:01:58 -07:00
BrennanConroy b5816f22cf Replace DNX451 with NET451 2016-03-31 10:58:45 -07:00
jacalvar de9ffb13c7 [Fixes #3732] Simplify controller discovery.
* Introduce ControllerAttribute and use it to mark base classes as controllers.
* Changed rules for controller discovery to:
  * All controller types must be public, concrete, non open generic types.
  * NotController attribute is not applied to any type oif the hierarchy.
  * The type name ends with controller.
  * Controller attribute is applied to the type or to one of its ancestors.
2016-03-31 10:50:26 -07:00
jacalvar 680e9bb2d1 Refactor and cleanup tag helper creation.
* Moved instantiation of tag helpers into DefaultTagHelperActivator.
* Introduced ITagHelperFactory for handling the setup of new tag helper instances.
2016-03-31 10:47:17 -07:00
Pranav K 79dbed5a92 Remove bower_components and bower.json 2016-03-31 09:55:30 -07:00
SteveSandersonMS 89c8dd3b36 Update Angular2Spa to current versions of Angular 2, angular2-universal-preview, etc. 2016-03-31 16:41:24 +01:00
SteveSandersonMS 033a42ab42 Update Webpack sample to use aspnet-webpack package 2016-03-31 15:56:39 +01:00
SteveSandersonMS dcfdbc8f04 Simplify aspnet-webpack - remove 'express' dependency and use 'connect' directly instead 2016-03-31 15:53:11 +01:00
Pranav K fab3bfd237 Remove bower \ gulp from sample 2016-03-31 07:01:27 -07:00
John Luo 22b37fb83b Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
John Luo cfd6ec311e Remove hosting.json 2016-03-30 16:58:39 -07:00
John Luo c08e850665 Reacting to Kestrel extensions 2016-03-30 16:38:02 -07:00
John Luo bb1b2695bf Reacting to Kestrel extensions 2016-03-30 16:37:07 -07:00
Doug Bunting 5a3ea74ffa React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:30:42 -07:00
Doug Bunting 84c897543e React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:28:38 -07:00
John Luo c0d265ce7b Reacting to Kestrel extensions 2016-03-30 16:27:01 -07:00
Doug Bunting 20a24a2ab6 React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:24:10 -07:00
John Luo dfb1f9c712 Reacting to Kestrel extensions 2016-03-30 16:23:13 -07:00
John Luo 2614ffb01d Reacting to Kestrel extensions 2016-03-30 16:22:43 -07:00
John Luo 2029510999 Remove hosting.json 2016-03-30 16:21:56 -07:00
Doug Bunting b2bf1a46f5 React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:21:34 -07:00
Doug Bunting 6bf25cecec React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:19:42 -07:00
Doug Bunting 16a0482238 React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:15:37 -07:00
Doug Bunting f1a02433be React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:14:34 -07:00
Doug Bunting 65a2b8d25b React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:13:12 -07:00