Commit Graph

40898 Commits

Author SHA1 Message Date
Kiran Challa 4cd3012886 Fix mixed route for action error message 2016-04-03 06:55:11 -07:00
N. Taylor Mullen 56bbb215ec React to aspnet/Razor#721. 2016-04-03 00:00:19 -07:00
N. Taylor Mullen 4212b7e713 Add `SetOutputContentAsync` to `TagHelperExecutionContext` to prevent allocation of `Task<T>`.
- Previously we'd do `executionContext.Output.Content = await executionContext.Output.GetChildContentAsync()`. The problem with this approach is that it returned a `Task<TagHelperContent>` which could not be optimized when building in release.
- Added test to validate `SetOutputContentAsync` does the appropriate thing.

#721
2016-04-02 22:58:37 -07:00
Pranav K cf1a548898 Make ci-build paths absolute 2016-04-02 22:42:01 -07:00
Pranav K 0f98a42894 ci-build cleanup
* Separate clone and build steps
* Create publish directory to prevent dotnet restore from failing
2016-04-02 22:27:10 -07:00
jacalvar 574ecbb3eb [Fixes #4087] Add support for AddTagHelpersAsServices()
* Added TagHelperFeature and TagHelperFeatureProvider to perform tag helper discovery.
* Changed tag helper discovery to use application parts when using tag helpers as services.
* Added FeatureTagHelperTypeResolver to resolve tag helper type definitions from the list of application parts.
* Added AddTagHelpersAsServices extension method on IMvcBuilder and IMvcCoreBuilder that
  performs tag helper discovery through the ApplicationPartManager and registers those tag helpers as
  services in the service collection. Assemblies should be added to the ApplicationPartManager
  in order to discover tag helpers in them in them. The @addTagHelper directive is still required on
  Razor pages to indicate what tag helpers to use.
2016-04-02 10:32:48 -07:00
Pranav K d1c52323f2 Revert "Revert "Reacting to CLI breaking change""
This reverts commit e74665e550.
2016-04-02 05:50:03 -07:00
jacalvar 4cbda0358b Eagerly initialize hosting environment 2016-04-02 00:53:11 -07:00
David Fowler b6a3fee088 Allocate the IServiceScopeFactory once and reuse it across requests
- Since we resolve the IServiceProvider from the application container, it's should be safe to reuse it across requests without the extra lookup everytime.
2016-04-01 20:32:59 -07:00
ryanbrandenburg e74665e550 Revert "Reacting to CLI breaking change"
This reverts commit 4788506b57.
2016-04-01 16:05:28 -07:00
Doug Bunting 384fd1f218 Quick fix: Address a couple of nits in / around `ViewDataDictionary`
- remove duplicate `null` checks in `ViewDataDictionary` constructors
- correct a couple of code comments
- use a `public` constructor for `ViewDataDictionary` in `ViewExecutor`
2016-04-01 15:31:47 -07:00
Sebastien Ros 341430eae5 [Fixes #4246] Introducing CacheTagKey
Prevent string allocations in CacheTagHelper
Fix hash collision by checking the serialized key with the actual content for DistributedCacheTagHelper
2016-04-01 15:06:29 -07:00
Hao Kung 5cd236c1b0 Guard against null ref 2016-04-01 14:16:49 -07:00
BrennanConroy 8c69989a5f React to logging changes 2016-04-01 12:02:09 -07:00
BrennanConroy f22e234dab React to logging changes 2016-04-01 12:00:33 -07:00
BrennanConroy f5944178e2 React to logging changes 2016-04-01 11:58:24 -07:00
BrennanConroy 269380e651 React to logging changes 2016-04-01 11:57:13 -07:00
BrennanConroy 8e38221bf8 React to logging changes 2016-04-01 11:55:28 -07:00
BrennanConroy 109c56713a React to logging changes 2016-04-01 11:53:47 -07:00
BrennanConroy 591ae3c26a React to logging changes 2016-04-01 11:51:00 -07:00
ryanbrandenburg 906ac728c7 Null-check PagedBufferedStringWriter 2016-04-01 11:50:46 -07:00
BrennanConroy eebacd2dd5 React to logging changes 2016-04-01 11:47:18 -07:00
Chris R 8196f2ab81 #605 Fix regressions in FormReader / FileBufferingReadStream. 2016-04-01 11:34:45 -07:00
jacalvar abaf3bba50 Make dependencies injectable in TagHelperDescriptorResolver.
* Added an interface for ITagHelperTypeResolver and made TagHelperTypeResolver implement it.
* Added an interface for ITagHelperTypeDescriptorFactory and made TagHelperDescriptorFactory implement it.
* Added a constructor on TagHelperDescriptorResolver that takes in an ITagHelperTypeResolver and ITagHelperDescriptorFactory.
2016-04-01 11:25:47 -07:00
BrennanConroy 4ddf7c2cc7 React to Logging changes 2016-04-01 11:11:09 -07:00
jacalvar f638c051fa Remove IAssemblyProvider and update DNX to work with application parts.
* Remove IAssemblyProvider.
* Remove DefaultAssemblyProvider in favor of DefaultAssemblyPartDiscoveryProvider.
* Update AddMvcDnx to add the list of DNX discovered assemblies to the list of application parts.
2016-04-01 11:01:09 -07:00
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