Commit Graph

37701 Commits

Author SHA1 Message Date
Pawel Kadluczka 84e9f672f6 .gitignoring global.json 2017-03-17 15:01:46 -07:00
Ryan Brandenburg 270f66198f Remove Razor from projects 2017-03-17 15:00:39 -07:00
Ryan Brandenburg a7eb30ddca Remove old razor 2017-03-17 14:58:13 -07:00
Cesar Blum Silveira 2ef3804578 Span-based RemoveDotSegments (#1448) 2017-03-17 14:42:13 -07:00
Kiran Challa fcb4b6ddbc Skip xplat standalone tests temporarily 2017-03-17 14:18:20 -07:00
N. Taylor Mullen 8f9ff1abd9 Clean up TagHelperDescriptor APIs.
- Removed all design time descriptors and put their API surface into their corresponding descriptor. Part of removing the design time API surface was removing the tracking of `<Remarks>`, it wasn't used so there's on need to track it until we need it.
- Removed the Type requirement from `TagHelperDescriptor`. With this separation we'll be able to have abstract `TagHelper`s that aren't based on a class implementation.
- Removed Prefix from the `TagHelperDescriptor` API surface. It was a legacy requirement based on how the Razor parser was put together. We can work around this now.
- Stripped correlation information from the immediate `TagHelperDescriptor` API surface. Instead this information is now tracked in `TagMatchingRule`s. This change means that you will not have multiple `TagHelperDescriptor`s per `TagHelper`; instead it's all tracked in a single descriptor. A side effect of this change was the transformation of `IsIndexer` => 3 new properties.
- Renamed many descriptor types and property names.
- Added builder APIs to construct TagHelpers since they're inherently immutable in their API surface.
- Added `ITagHelperDescriptorBuilder` to represent `TagHelper`s that are built from an `ITagHelper` implementing class. It re-introduces the `TypeName` association of a `TagHelper`.
- Added `ITagHelperBoundAttributeDescriptorBuilder` to represent that an attribute was associated with a property.
- Added validation methods to the descriptor builders to enable consumers to validate the current state of the builder and add diagnostics as necessary.
- Moved descriptors away from RazorError.
- Updated the various comparers to understand the descriptors new API.
- Added a new `RazorDiagnosticFactory` abstraction to handle `RazorDiagnostic`s and their corresponding errors/ids etc. This new API should allow for easy addition of new `RazorDiagnostic` errors.
- Updated the `DefaultTagHelperDescriptorFactory` to construct `TagHelperDescriptor`s using the new builder APIs and in the new descriptor format (1 descriptor per type).
- Updated `ViewComponentTagHelperDescriptorFactory` to construct `TagHelperDescriptor`s with the builder API.
- With both factory implementations code was duplicated because the ViewComponent work will be moving outside of Razor once we have the proper hooks.
- Updated `TagHelper` binding bits to capture a binding result in order to query which rules appy to a given tag name.
Addressed feedback
- Update tests to react to new `TagHelperDescriptor` API.
- Remove case sensitive comparers and some cleanup
- Added TagHelperDescriptorJsonConverter, RazorDiagnosticJsonConverter and added serialization tests
2017-03-17 12:18:05 -07:00
Pawel Kadluczka 61ebf10ea9 Update README.md (#315) 2017-03-17 11:12:53 -07:00
Ajay Bhargav Baaskaran 1fdc5132cb React to TagHelper descriptors api cleanup 2017-03-17 10:51:02 -07:00
Jass Bagga 1197657e5b TempData property attribute
Addresses #5600
2017-03-16 16:34:35 -07:00
Ajay Bhargav Baaskaran ce28117b8b Normalize line endings in RazorEngine tests 2017-03-16 15:51:10 -07:00
moozzyk 23375c911b Fixes a race where wrong task could be awaited in channel completion
We had a startTask we would await in DisposeAsync and channel completion continuation. This task would be initially set to a completed task and then once StartAsync was invoked it would be replaced with the actual task representing StartAsyncInternal. However if a transport failed immediately after starting the channel completion continuation could have been called before the StartAsyncInternal method completed. In this case we would await the inital completed task and then very likely would fail trying to await _receiveLoop task because it wouldn't necessarily be set.
The fix is to use TaskCompletionSource so we don't try to swap tasks. We need to do some additional state checks because:
- the TaskCompletionSource task may never be completed (e.g. DisposeAsync is being called without starting the connection)
- TaskCompletionSource allows setting the result only once and we should not return its task more than once (e.g. calling StartAsync after connection was successfully started and stopped)

Fixes #304
2017-03-16 13:45:18 -07:00
moozzyk 1d9da9bff8 Moving XUnitLoggerProvider to Common location 2017-03-16 13:45:18 -07:00
Ryan Nowak 90b48347a5 Port the legacy RazorEditorParser 2017-03-16 12:47:29 -07:00
Andrew Stanton-Nurse 0911f9023b add additional test for 0-byte sends (#308)
fixes #150
2017-03-16 11:54:18 -07:00
Ajay Bhargav Baaskaran 74889c8f99 Modified MvcRazorHost tests to use new Razor 2017-03-16 11:13:42 -07:00
Andrew Stanton-Nurse 1732ac5760 add support for binary format in /poll (#303) 2017-03-16 11:06:26 -07:00
Nate McMaster 4a8a28ec16 React to aspnet/Testing#259 2017-03-16 09:59:12 -07:00
Nate McMaster a2e2886849 Add issue template with list of repos (#1971) 2017-03-16 09:33:00 -07:00
Nate McMaster 9b3e8d0cda React to aspnet/Testing#259 2017-03-16 09:31:55 -07:00
Nate McMaster c89ba8c1ec Consolidate dependency versions to one file 2017-03-15 19:34:12 -07:00
Nate McMaster 4abe714f2b Consolidate dependency versions into one file and remove workarounds 2017-03-15 19:29:21 -07:00
Nate McMaster 1d61e9059f ⬆️ update ResponseCompression to latest dev version 2017-03-15 19:16:42 -07:00
Nate McMaster 3ec8b76236 Consolidate dependency versions into one file and remove workarounds 2017-03-15 19:05:25 -07:00
Nate McMaster 10ef26d63c Consolidate dependency versions into one file and remove workarounds 2017-03-15 18:12:53 -07:00
Andrew Stanton-Nurse 0133153bc9 use new protocol for '/send' (#297) 2017-03-15 18:03:23 -07:00
Andrew Stanton-Nurse cd246adb6f Update spec for behavior on poll reconnect (#305) 2017-03-15 18:03:12 -07:00
Ajay Bhargav Baaskaran 1ce7fc7245 Use TryAdd to add services 2017-03-15 17:57:44 -07:00
Nate McMaster baa5cb4912 Consolidate dependency versions to one file and remove workarounds 2017-03-15 17:55:48 -07:00
Nate McMaster 6ef43e91b5 Consolidate dependency versions to one file and remove workarounds 2017-03-15 17:50:59 -07:00
Ryan Nowak 8f4ca32f48 Fix #5807 - Race condition in Invoker
This change addressed a race condition in the ObjectMethodExecutor where
the default argument values array can become visible before it is
initialized. If a second observer accesses the array while it is being
initialized, it can observe a null value for a reference type parameter,
leading to a nullref.

The fix here is to make everything immutable and initialize it all up
front. There's no reason to create an OME without eventually running it,
so there's no downside to doing the initialization up front.
2017-03-15 17:19:29 -07:00
Steve Sanderson efcfc0b9a6 Bump template packages to 0.9.0 for release 2017-03-15 17:04:55 -07:00
Steve Sanderson 68e27d6091 In Yeoman generator, assert dotnet is >= 1.0.0, and set detected version in global.json 2017-03-15 17:04:20 -07:00
Nate McMaster 101764328b Consolidate dependency versions to one file and remove workarounds 2017-03-15 17:01:10 -07:00
Nate McMaster 6f7717a381 Unify dependency versions to one file 2017-03-15 16:54:32 -07:00
Nate McMaster 6d59c8b589 Unify dependency versions to one file and remove workarounds 2017-03-15 16:50:26 -07:00
Nate McMaster 43a41398ac Unify dependency versions to one file 2017-03-15 16:44:00 -07:00
Nate McMaster de201a544f Unify dependencies versions to one file and remove workarounds 2017-03-15 16:39:35 -07:00
Nate McMaster 3c45b49967 Remove unecessary files, unify dependency versions, and remove workarounds 2017-03-15 15:49:35 -07:00
Andrew Stanton-Nurse 77e763a516 port aspnet/WebSockets#149 (#301) 2017-03-15 15:45:06 -07:00
Nate McMaster 890a81562f Unify dependency versions 2017-03-15 15:36:33 -07:00
Nate McMaster 36ee7dcfa5 Unify dependency versions to one file and remove workarounds 2017-03-15 15:20:44 -07:00
Nate McMaster 832cbdcee8 Unify dependency versions to one file 2017-03-15 15:11:25 -07:00
Nate McMaster de30243c11 Unify dependency versions to one file and remove workarounds 2017-03-15 15:06:58 -07:00
Nate McMaster 8d8faf9adc Unify dependency versions to one file and remove workarounds
Upgrade to stable version of Moq
Simplify sample dependencies by using metapackage
2017-03-15 14:47:08 -07:00
Nate McMaster 066644654f Add server GC to samples 2017-03-15 14:46:30 -07:00
Nate McMaster 5c4a132d71 Unify dependency versions to one file and remove workarounds 2017-03-15 14:24:15 -07:00
Nate McMaster 73d58b7a13 Unify dependency versions to one file 2017-03-15 13:54:28 -07:00
Nate McMaster e3ca1d1a2c Unify dependency versions to one file and remove workarounds 2017-03-15 13:47:45 -07:00
Nate McMaster e8db0cb43e Unify dependency versions to one file and remove workarounds 2017-03-15 13:25:35 -07:00
Nate McMaster fd3486df0f Unify dependency versions to one file and remove workarounds 2017-03-15 12:58:08 -07:00