Commit Graph

40898 Commits

Author SHA1 Message Date
Ben Adams 4eba490217 Only test for critical logging 2015-09-28 18:46:11 -07:00
Chris R 78cf065b88 #493 Upate to IdentityModel beta8 dependencies. 2015-09-28 18:25:13 -07:00
Ajay Bhargav Baaskaran c7e3f98cdd Enabling NuGetPackageVerifier 2015-09-28 18:11:01 -07:00
あまみや ゆうこ be186a8cd8 Update Startup.cs 2015-09-28 18:09:46 -07:00
Ryan Nowak d37f5aeb31 Fix #3217 - Optimize IList.GetEnumerator allocations
This change fixes call sites on the main request path for a simple site
(model binding, validation, views) that allocate boxed list enumerators.

Some cases aren't addressed by this change because the fix is too invasive
or requires changing an important contract to take IList instead of
IEnumerable. Will follow up on those case by case in order of importance.
2015-09-28 16:17:48 -07:00
Chris R ca6d7ffdd3 Add HttpPlatformHandler for windows auth tests. 2015-09-28 16:07:36 -07:00
Doug Bunting 28aec3f5cc Support user overrides of system-provided `ModelError` messages
- #2969
- add `ModelBindingMessages` for configuration and `IBindingMetadataProvider` overrides
  - use `interface` to avoid `new` oddities when adding a setter to an `abstract` property
- add `IModelBindingMessages` to `ModelMetadata` for use in rest of the product code
- plumb the various bits through the system
- add integration tests using a custom `IBindingMetadataProvider`s to override messages

nits:
- remove unused resources
- use `AttemptedValue` and not `model` in `SimpleTypeModelBinder`
2015-09-28 15:50:21 -07:00
Chris R 6b9a7fb294 Add IISIntegration 2015-09-28 15:24:11 -07:00
Chris R 4510d20a83 #2 Platform handler middleware, sample, tests, functional tests. 2015-09-28 15:16:55 -07:00
Hao Kung bf4ed2f645 Remove unused using 2015-09-28 14:31:40 -07:00
Ryan Nowak 0d6edf240a Move ModelExplorer to ViewFeatures 2015-09-28 14:14:40 -07:00
Chris R 673617f3dd Always specify the ApplicationHost.Config file. 2015-09-28 14:03:00 -07:00
Hao Kung d60bcac9b4 Tweak AddToRole duplicate behavior 2015-09-28 13:57:49 -07:00
Søren Kruse ec18b35123 Add FormatterCollection<T>
#2945
2015-09-28 13:23:19 -07:00
Ryan Nowak 67b43b4cfe Workaround Mono bugs to fix travis
This change works around two mono issues that are blocking travis. I'd
like to have tests skip instead, but unfortunately that would mean not
running any validation tests on mono so this seems better.

- RuntimeHelpers.GetHashCode will sometimes crash the runtime
- PropertyHelper sometimes returns throws null-ref
2015-09-28 12:58:45 -07:00
Hisham Bin Ateya 371511aaf1 Add description to project.json 2015-09-28 12:48:33 -07:00
Anthony van der Hoorn 49035fd292 Order the setting of ContextAccessor so it happens before the BeginRequest event occurs. 2015-09-28 12:48:05 -07:00
Chris R 0131015b43 Update server test infrastructure, remove Helios concepts. 2015-09-28 12:41:23 -07:00
Stephen Halter 6d3e5d3bf2 Merge branch 'benaadams/fastpath-header-enumerator' into dev 2015-09-28 12:21:58 -07:00
moozzyk 454812e9bc Expanding environment variables in paths 2015-09-28 12:14:09 -07:00
David Fowler 44890477a0 Merge pull request #91 from hishamco/internals
Fix project name in AssemblyInfo
2015-09-28 00:58:45 -07:00
Hisham Bin Ateya 61106d36a1 Fix issue #88 2015-09-28 00:11:45 -07:00
David Fowler 22d13c4b34 Fixed some small usage issues
- Simplify waiting for changes
- Fixed project dependencies
2015-09-27 23:04:10 -07:00
Ryan Nowak 9a41bafea7 Fix #526 - use extension methods for AppendFormat
These changes make TagHelperContent with the IHtmlBuilder pattern, but
retain the signatures returning TagHelperContent.

Removed a bunch of tests that are no redundant with tests for the
extension methods in HttpAbstractions. Kept a few explemars in place to
ensure that the basic plumbing functions as desired.
2015-09-27 22:47:23 -07:00
moozzyk e47192b9e9 Using a path from `DNX_PACKAGES` if defined 2015-09-27 21:02:18 -07:00
Ben Adams 434bddeec5 Revert for grumpy test 2015-09-28 01:52:17 +01:00
Ben Adams ed1fd4a2e8 Lazy eval requestIdentifier
Until is moved to httpContext?
2015-09-28 01:45:47 +01:00
Victor Hurdugaci 681e027f3f Add dnx watch to the projects list 2015-09-27 14:16:52 -07:00
Victor Hurdugaci 3f40980d02 First version of dnx watch 2015-09-27 13:59:07 -07:00
Pranav K 18c80d156c Replace NotNullAttribute with thrown exceptions 2015-09-26 23:48:43 -07:00
Chris R 03d6eb8367 Re-enable IISExpress tests using HttpPlatformHandler. 2015-09-26 22:30:33 -07:00
Doug Bunting eff10cdd66 Move `ModelStateDictionaryExtensions` into `Microsoft.AspNet.Mvc.ModelBinding` namespace
- missed the inconsistency when reviewing
- kept class in ViewFeatures assembly because it depends on `ExpressionHelper`

nit: wrap some long lines
2015-09-26 18:15:04 -07:00
Muchiachio b28debf442 Generic ModelStateDictionary add and remove extensions
- Added generic add model error and remove extensions for
ModelStateDictionary, to avoid using hard coded strings then specifying
model state dictionary keys.
- Added generic removal all  extension for ModelStateDictionary, to
support removing all the model state keys for given expression.

aspnet/Mvc#3164
2015-09-26 18:14:58 -07:00
moozzyk d2f282f54f Consuming Libuv from NuGet package
Fixes #50
2015-09-26 18:00:50 -07:00
Ben Adams 07b3814f32 Correct test
Yuk...
2015-09-26 22:51:06 +01:00
Chris R e3f141fcde #227 Fix OverflowException in MemoryPool 2015-09-26 06:56:54 -07:00
Ben Adams 7e52a00499 Start log scope only if logging is enabled 2015-09-26 14:34:49 +01:00
Pranav K e87f10e8f8 Change ITypeInfo.IsTagHelper to ITypeInfo.ImplementsInterface(ITypeInfo)
Fixes #511
2015-09-25 21:38:36 -07:00
Pranav K 6a0a24481a Asynchronously flush the HttpResponseStreamWriter after a view has been rendered.
This solves a perf issue for views which produce content that is smaller
than the buffer size of HttpResponseStreamWriter. In this case, the writer
ends up synchronously writing to the Response as part of Dispose which
affects perf.
2015-09-25 21:07:15 -07:00
Chris R 822ee7caf8 React to configuration API changes. 2015-09-25 20:54:56 -07:00
ASP.NET Push Bot d8c28a177d ⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@6479d250bb
2015-09-25 17:41:05 -07:00
Ryan Nowak c62aa147f4 Make .Clear() consistent with TagHelperOutput 2015-09-25 17:17:28 -07:00
Ryan Nowak 8a502dbe5d Rewrite of validation 2015-09-25 16:56:42 -07:00
N. Taylor Mullen d2a7a355cc Change `[RestrictChildren]` to allow non-`TagHelper` tags.
- Updated the `TagHelperParseTreeRewriter` loosen child restrictions to non-`TagHelper` HTML elements.
- Updated tests to showcase that non-`TagHelper` elements are allowed to be restricted.
- Added an additional test case to showcase sub-sub nesting of non-`TagHelper` restricted children.

#543
2015-09-25 16:27:48 -07:00
Stephen Halter f0137b7b9e Bind to specific IP addresses if provided with any
This still only applies to IPv4.

#98
2015-09-25 16:26:01 -07:00
N. Taylor Mullen 816b1f4190 Update `Lookahead` method in `Tokenizer` to maintain its existing buffer.
- Added tests to verify correctness.

#527
2015-09-25 16:23:42 -07:00
Ben Adams 1718b69f22 Fast path header enumerator
Use strongly typed enumerable as interface's allocates.
2015-09-26 00:16:42 +01:00
Kirthi Krishnamraju 0889b18f95 Add localizers to validation attributes 2015-09-25 16:13:21 -07:00
Ryan Nowak a602b47e26 Add AppendFormat extension methods on IHtmlContent 2015-09-25 15:49:27 -07:00
damianedwards a7b65efa75 CR feedback 2015-09-25 14:59:47 -07:00