Commit Graph

40898 Commits

Author SHA1 Message Date
Hao Kung 83f7a4423f undo test fix 2015-06-25 17:56:37 -07:00
Hao Kung 96edf5ae98 Fix test to match WebListener 2015-06-25 17:41:56 -07:00
Hao Kung 981d040cc2 Fix build 2015-06-25 17:36:51 -07:00
Hao Kung 7c426f7835 React to Http/AuthNZ changes 2015-06-25 17:30:09 -07:00
Hao Kung f724fefbda React to HttpChanges 2015-06-25 17:28:07 -07:00
Hao Kung e825da0910 Fix build 2015-06-25 17:20:42 -07:00
Hao Kung 3a8ea672ea AuthN and AuthZ API changes (Async, Challenge) 2015-06-25 17:19:27 -07:00
Hao Kung 7b31e034ca React to Http changes 2015-06-25 17:10:13 -07:00
Hao Kung 086b53d21d React to OnStarting rename 2015-06-25 17:05:57 -07:00
Hao Kung 5621a2c2c7 React to HttpChanges 2015-06-25 17:04:16 -07:00
Hao Kung 5fe8037281 Auth API changes (Async, ChallengeBehavior) 2015-06-25 17:03:10 -07:00
Ajay Bhargav Baaskaran a3cbb1f378 [Fixes #2684] Removed Mvc.Common
- Removed TaskHelper and refactored with ClosedGenericMatcher
 - Removed TypeHelper
 - Moved custom encodings to InputFormatter
 - Moved ObjectToDictionary to PropertyHelper
 - Removed respective tests and test projects
2015-06-25 16:02:07 -07:00
Arthur Vickers c6b92fe16c React to EF changes 2015-06-25 16:01:25 -07:00
Arthur Vickers 32625917e3 React to EF changes 2015-06-25 16:00:53 -07:00
Arthur Vickers 15fa458362 React to EF changes 2015-06-25 16:00:00 -07:00
Ryan Nowak 9e68537649 Add Minimal sample to Mvc.sln 2015-06-25 15:57:46 -07:00
Doug Bunting 308eddc095 Quick fix: Do not check a platform-specific message 2015-06-25 15:56:21 -07:00
N. Taylor Mullen 02a3ca8abb React to aspnet/Razor#352.
- Moved initialization of TagHelperDescriptorResolver to be Lazy so DesignTimeMode can be set.
2015-06-25 15:50:19 -07:00
N. Taylor Mullen 9055da1894 Add tests to validate creation of TagHelperUsageDescriptors.
- Could not add tests to validate the full TagHelperDescriptorFactory.CreateDescriptors => TagHelperUsageDescriptors due to how the runtime loads assemblies (does it in memory without XML).
- Added serialization tests to include TagHelperUsageDescriptors.
- Updated existing tests to use new TagHelperDescriptor/TagHelperAttributeDescriptor constructors.

#352
2015-06-25 15:10:38 -07:00
N. Taylor Mullen ccf8433f27 Add TagHelper documentation resolution to TagHelperDescriptorResolver.
- Added TagHelperUseageDescriptor and associated factory for the TagHelperDescriptorFactory to utilize.
- TagHelperUseageDescriptors are only created during design time.
- CoreCLR is not supported for XML documentation resolution for now. Can revisit this later when we have better tooling integration with CoreCLR.

#352
2015-06-25 15:10:27 -07:00
Ryan Nowak 2f554c4b29 Use new antiforgery package 2015-06-25 14:45:00 -07:00
Ajay Bhargav Baaskaran e2787b3b84 [Fixes #2715] Removed formatter dependency from JsonResult and JsonViewComponentResult 2015-06-25 14:09:32 -07:00
Hisham Abdullah Bin Ateya 32ecf485b9 Add 'SessionDefaults' docs & react to PR #36 changes
Grammatical fixes
2015-06-25 23:51:15 +03:00
Ryan Nowak e13e707503 CR feedback and naming/resource cleanup 2015-06-25 13:25:52 -07:00
Onat Yiğit Mercan 5288a44ae4 Added prerequisites section 2015-06-25 22:54:53 +03:00
Ryan Nowak d2908e7b7b Tweak lifetimes for a few commonly resolved services
This is some low hanging fruit for reducing the number of resolves we have
per request.

DefaultHtmlGenerator: Lots of these are created by RazorPage. It needs
IUrlHelper, so scoped is the best we can do for now. For an example, on
the front page of our sample, 48 of these are created for each request.
48! This takes it down to 1-per-request.

JsonResult: Again, multiple created per request (12 for the sample). This
class is totally stateless, so we can get down to 0-per-request.

DefaultViewComponentInvokerFactory: Same story as JsonResult.

DefaultObjectValidator/MvcMarkerService/DefaultFilterProvider:
these are stateless and pretty much guaranteed to be used by every request.
Getting them off the table.
2015-06-25 12:52:15 -07:00
Murat Girgin 22ed0f5416 Initial commit 2015-06-25 12:21:18 -07:00
Chris R 641a7fb82b Correct exception type. 2015-06-25 12:20:53 -07:00
Hisham Abdullah Bin Ateya eb423e57d6 Using 'nameof' operator instead of magic strings
Fix back-end field issue

Fix back-end field issue
2015-06-25 12:17:17 -07:00
Ryan Nowak 08068a85be Make use of concise 'TryAdd***' overloads where possible 2015-06-25 12:08:58 -07:00
N. Taylor Mullen 361a53ba3c Remove empty line. 2015-06-25 11:39:54 -07:00
N. Taylor Mullen 0bb9457fd9 Change duplicate TagHelper bound attributes to flow to output.
- Duplicate TagHelper bound attributes used to be ignored entirely; they now flow to the output as if they were unbound.
- Added code generation test to verify duplicate attributes. Added runtime and design time versions.
- Updated existing tests that happened to have duplicate bound attributes.

#418
2015-06-25 11:11:04 -07:00
N. Taylor Mullen 039062c5eb Fix C# design time projections for complex TagHelper attributes.
- TagHelper attributes that have expressions intermingled within them (resulting in Block elements) resulted in Spans in the attribute being falsely marked as SpanKind.Markup.
- Updated tests to account for new SpanKind.Code behavior.
- Added complex scenario to validate SpanKind.Code is flowed through to surround attributes.

#387
2015-06-25 10:27:03 -07:00
Hisham Abdullah Bin Ateya bbc7393d22 Fix docs in 'SessionOptions' 2015-06-25 20:20:16 +03:00
Chris R 652d885402 #177 Immutable HeaderValue objects. 2015-06-25 09:34:14 -07:00
Hisham Abdullah Bin Ateya 9ce60218c1 Make 'SessionDefaults' fields as Constants 2015-06-25 09:07:17 -07:00
Ryan Nowak f055618c8c Update MVC Enumerable service registrations
Updates MVC service registration code to use the new TryAddEnumerable
overload (idempotence++).

Some other misc cleanup to improve idempotence.
2015-06-24 18:44:36 -07:00
Doug Bunting 37f056ce2b [quick fixes] Cleanup a few things StyleCop found ages ago
- was trying out rules matching frequest PR comments (then)
 - did a manual scan to find new instances of same issues
- "" -> `string.Empty`
- `String` -> `string` and similar
- fill empty XML doc elements
 - ignored `JsonPatchDocument<TModel>`; just too many empty elements
- corrected missing / extra / out-of-order `<param>` descriptions
 - `xml-docs-test` detects incorrect external references but not these local issues
2015-06-24 16:37:39 -07:00
Ryan Nowak b3e92da7d8 Add an IAntiforgery interface and simplify API 2015-06-24 15:56:03 -07:00
Doug Bunting 9c63d1d842 Get tests working with `core.autocrlf=false`
- #1514
- refactor `RazorCompilationService` to allow a test subclass that normalizes Razor file line endings
 - add `TestRazorCompilationService` to `RazorPageExecutionInstrumentationWebSite`
 - adjust line endings to match in `RazorPageExecutionInstrumentationTest`
- add `ignoreLineEndingDifferences: true` to `Assert.Equal()` calls
 - responses on Windows can have a mix of line endings
  - `git config` setting affects line endings in .cshtml (and baseline) files
  - however MVC and Razor mix `Environment.NewLine`s into HTTP responses
- update `PrecompilationTest` to split response regardless of line endings
- update `ResourceFile` to normalize all source file streams to LF only
 - ensures consistent checksums and line mappings
 - change `MvcRazorHostTest` to expect new line mappings
 - recreate baseline files to expect new checksums and literal line endings
- use verbatim strings in affected tests
 - careful use of `Environment.NewLine` in expectations is now just noise

nits:
- add doc comments in `RazorCompilationService`
- correct `TagHelpersTest` name to match containing file
- avoid incorrect `using` removal when `GENERATE_BASELINES` is not defined
- remove unnecessary `ResourceFile` normalization of output files
2015-06-24 14:53:07 -07:00
Pranav K 6d5ac18d0c Use dnvm run instead of switching using dnvm use 2015-06-24 14:35:02 -07:00
Murat Girgin c343cb2e9f Update Queries.md 2015-06-24 13:59:43 -07:00
Pranav K d65251055e Updating dnvm 2015-06-24 13:58:01 -07:00
Murat Girgin 287a8ff33c Update Queries.md
Adding more team members
2015-06-24 13:56:01 -07:00
Chris R 3c9690ed79 Add individual bug queries. 2015-06-24 12:05:14 -07:00
Glenn Condron 609285e2ac Merge pull request #684 from PatrickNausha/dev
Add required script extension.
2015-06-24 11:32:19 -07:00
Mikael Mengistu 12b78a31bf Added more tests and error handling for construction of middleware classes #236 2015-06-24 10:03:56 -07:00
Harsh Gupta 09838fb45a Fixing Tests 2015-06-24 09:56:31 -07:00
ASP.NET Push Bot e81f1ef88b ⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: AspNet/kvm@3b0dc110c4
2015-06-24 09:51:55 -07:00
Murat Girgin 865ce2b08a Create Queries.md 2015-06-24 09:49:06 -07:00