Commit Graph

39740 Commits

Author SHA1 Message Date
Ajay Bhargav Baaskaran e21f157095 changed contract.assert to debug.assert 2014-11-19 15:35:28 -08:00
Praburaj f72b23c871 Test flakiness - Moving the first request into a retry block
Sometimes the first request to the application results in exceptions like 'No connection could be made because the target machine actively refused it'. Adding a retry to mitigate that.
2014-11-19 13:35:55 -08:00
N. Taylor Mullen 64a5b8ee22 Addressed code review comments. 2014-11-19 10:07:33 -08:00
DamianEdwards dbee8c1f6b And you get NoCache, and you get NoCache, and you get NoCache
- NoCache for everybody!
2014-11-18 17:35:38 -08:00
DamianEdwards 62e84ae620 Make MusicStore.Spa..NoCacheAttribute try *really* hard to prevent caching 2014-11-18 17:19:21 -08:00
DamianEdwards 22ad9b9572 MusicStore.Spa changes:
- Upgraded to Angular 1.3 (Fixes #267)
- Fix XHR GET caching issue in IE with new NoCacheAttribute
- Slight fix in admin home page (album list) to ensure initial data fetch has the sort expression in the query
2014-11-18 17:08:12 -08:00
Praburaj ba5d235a32 Function name not passed to LoadFrame method when file name is not present in stacktrace
When file names are missing from exception stack trace the above line of code does not pass the detected function name. As a result issue described in bug : https://github.com/aspnet/Diagnostics/issues/49 happens.

This issue happens on mono. With this fix method names show up in the error page middleware output on mono.
2014-11-18 17:06:08 -08:00
ianhong f470fa6d74 Merge branch 'actionmodel1495c' into dev 2014-11-18 16:59:01 -08:00
Suhas Joshi 0e9fa31da5 Register DataProtection Services in tests 2014-11-18 15:49:34 -08:00
Pranav K a322588af6 Reacting to DataProtectionServices being removed from hosting services 2014-11-18 15:49:12 -08:00
ianhong 59b7352e8e Update per comment 2014-11-18 15:35:40 -08:00
ianhong 7b58d569eb ReadOnly attributes for Action, Controller, and Parameter 2014-11-18 15:35:39 -08:00
rowanmiller ef544d9baa Update Microsoft.AspNet.Diagnostics.Entity to build in this repo
Previous commit copied code verbatim from EF repo
This commit updates it to build in this repo
2014-11-18 15:12:13 -08:00
Chris Ross 977a08ddca Add DataProtection to samples. 2014-11-18 14:59:56 -08:00
Chris Ross b37966f7ef Fix DataProtection DI dependencies. 2014-11-18 14:51:36 -08:00
Ajay Bhargav Baaskaran 91c3a550f1 changed contracts.assert to debug.assert 2014-11-18 13:52:42 -08:00
Chris Ross b44ffdb745 #111 - Remove DataProtectionOptions from the service collection. 2014-11-18 13:02:58 -08:00
Ryan Nowak 38b3b61485 update due to breaking changes in routing 2014-11-18 12:37:47 -08:00
Ryan Nowak 5c116db6a5 Add a sample of building a customize 'MapRoute' method
This is a sample of the pattern for building a MapRoute method that
customizes routing by adding constraints, datatokens, or defaults. This is
the replacement for adding data to the route directly.

Also fixed up the sample to work. It was massively out of date.
2014-11-18 11:58:29 -08:00
Ryan Nowak 01345eca91 Fix for #92 - Make Constraints, DataTokens, and Defaults readonly
The properties on TemplateRoute for DataTokens and Defaults are now
readonly. This prevents modifying these collections in a way that
invalidates cached data, or violates thread-safety.

To do the same for constraints, this change includes a substantial refactor
of how we realize inline constraints, and moves the constraint resolver
out of the parsing phase.

This allow creates a builder for the constraint map, that will make it
easier to implement features like optional constraints, and is reusable
for anyone building their own type of routing system.
2014-11-18 11:24:25 -08:00
Ryan Nowak 661583f694 Fix for #1447 - Adding functional tests that verify per-request services
These tests verify that per-request services can be injected into assets
that users provide/implements (filters, constraints, controllers, views,
etc).

The purpose is to verify that the services are correctly resolved from the
per-request service container, and don't have state that lingers and
influences the next request. This is important because changing the
lifetime of a framework services could easily impact the lifetimes of
others, and ultimately of something the user created.
2014-11-17 18:38:49 -08:00
Ryan Nowak ca92700a6f Adding a functional test that modifies data tokens
Tracked by aspnet/Routing#116

The product support for this feature is in already this change just adds a
test verifying the scenario.
2014-11-17 18:35:04 -08:00
Ryan Nowak 5fd453f07d Revert "Fix for MVC #1539 - Deal with the case where request services are not set"
This reverts commit d9a3c265ea.

This was the wrong commit, did not intent to merge this.
2014-11-17 18:33:56 -08:00
Ryan Nowak d9a3c265ea Fix for MVC #1539 - Deal with the case where request services are not set
Rather than throwing here, this does what routing does. If request
services aren't set, we just create our own scope.

This will NOT create an extra scope if request services are already set.
2014-11-17 17:30:41 -08:00
rowanmiller fad5ba4323 Copy of Microsoft.AspNet.Diagnostics.Entity code from EntityFramework
Straight copy of code with no modification so that we have a baseline of changes made to port the code to the Diagnostics repo
2014-11-17 15:49:09 -08:00
Chris Ross 8caec74f03 Add a HotAdd/Remove prefix sample. 2014-11-17 09:24:52 -08:00
Chris Ross ecf9454efe Make prefix add & remove thread safe. 2014-11-17 09:24:46 -08:00
Chris Ross 46a11be2ed #39 - Hot add/remove prefixes. #13 - Support Add/Remove(string). 2014-11-17 09:24:42 -08:00
Chris Ross 6a4f49a188 Fix facebook endpoint tests. 2014-11-15 08:13:56 -08:00
ianhong 57d234bd7b Removing a <inheritdoc> comment that I forgot from the previous push. 2014-11-14 15:22:36 -08:00
Chris Ross b5156a00b3 Argument validation cleanup. 2014-11-14 15:14:16 -08:00
Chris Ross ba693dd383 Code cleanup. 2014-11-14 15:11:41 -08:00
Chris Ross 1dd3a2ee1f #147 - OWIN: Throw KeyNotFoundException if the underlying Feature is missing. Return defaults for required entries. 2014-11-14 15:11:40 -08:00
Chris Ross 0fee3c87a0 #85 - Update the targeted Facebook API version to v2.2. 2014-11-14 15:05:31 -08:00
Pranav K 052ad3e95f RenderSection \ RenderSectionAsync does not work in sections
Fixes #1509
2014-11-14 12:17:25 -08:00
Suhas Joshi 42c809ca16 Updated to use EF Async methods 2014-11-14 11:47:51 -08:00
N. Taylor Mullen bad8b16a2a Add extensibility point to resolve descriptors in assembly.
- Modified our default TagHelperDescriptorResolver to provide a protected virtual method that it uses under the covers to resolve descriptors for an entire assembly. This will enable tooling to cache descriptors on a per-assembly basis.

#214
2014-11-14 10:45:19 -08:00
N. Taylor Mullen 829faaaa4b Change TagHelperAttributeDescriptor to not depend on PropertyInfo.
- Right now the only information that is used from the PropertyInfo is the PropertyName and the PropertyType, therefore changed the PropertyInfo property on TagHelperAttributeDescriptor to be AttributeTypeName since we already had an accessor for AttributePropertyName.
- Modified test comparers to validate type names.

#214
2014-11-14 10:45:14 -08:00
N. Taylor Mullen 2200f7dc3a Add AssemblyName to TagHelperDescriptor.
- TagHelperDescriptor's need a way to showcase where they came from so tooling can reverse look them up.
- Update tests to specify TagHelperDescriptor assembly names.

#214
2014-11-14 10:45:08 -08:00
N. Taylor Mullen 8d4bdbdb84 Allow invalid HTML to be in Razor pages.
- Modified the TagHelperParseTreeRewriter to not remove invalid HTML snippets.
- Added tests to validate invalid HTML is allowed.

#212
2014-11-14 10:30:51 -08:00
Chris Ross b7bb7f8fcf Fix issue with empty path. 2014-11-14 09:43:33 -08:00
Suhas Joshi 8709721890 Merge branch 'UpdateKestrel' of https://github.com/aspnet/Security into UpdateKestrel 2014-11-13 16:51:52 -08:00
Suhas Joshi 4f90920b6d Added kestrel and running on IIS support 2014-11-13 16:50:53 -08:00
Chris Ross bf5d14f477 #78 - Enable TestServer to populate the PathBase. 2014-11-13 16:23:03 -08:00
Suhas Joshi 191bf8815c Updating connection strings to use lcatest localdb 2014-11-13 15:49:45 -08:00
Suhas Joshi 2f7c186b24 Adding necesary files for IIS hosting 2014-11-13 12:57:01 -08:00
ianhong dd1500dcfb Updated a comment and sort usings 2014-11-13 11:28:13 -08:00
ianhong 245d1dffda Updating the summary comment for IRazorViewFactory and its tests per comments 2014-11-13 11:28:12 -08:00
ianhong 0720177243 Updating per comments 2014-11-13 11:28:12 -08:00
ianhong 23a7aa813d Updating FindView_UsesViewLocationExpandersToLocateViews for IRazorViewFactory. 2014-11-13 11:28:12 -08:00