Commit Graph

40898 Commits

Author SHA1 Message Date
damianedwards 017b9b8773 Added tests to cover ResourceManagerStringLocalizerFactory caching behavior 2015-12-18 14:28:08 -08:00
damianedwards d3b84c19c8 Tweaked cache key when getting localizer from basName/location:
- Cleaned up code a little to make it easier to understand (maybe)
- #138
2015-12-18 14:28:08 -08:00
John Luo 4f577e7217 Reacting to new Hosting API 2015-12-18 13:41:36 -08:00
Ryan Nowak d25ea4be6d react to breaking change in routing 2015-12-18 10:54:14 -08:00
Ryan Nowak 1e6ff07ec8 Fix routing service registration 2015-12-18 10:35:57 -08:00
Victor Hurdugaci 76c0f12c06 Full path -because paths are hard 2015-12-18 10:08:25 -08:00
Victor Hurdugaci 0ce70ddb1c Use full path for test runner 2015-12-18 09:54:00 -08:00
Ryan Nowak 8fb187bf09 Use system.buffers for our reader/writer 2015-12-18 09:27:36 -08:00
Ryan Nowak 813171a016 Reduce allocation in URL generation
This change optimizes our a per-operation dictionary that really can just
be cached for the whole app's lifetime.
2015-12-18 09:20:52 -08:00
Victor Hurdugaci ae85d226be Remove dnx and make CLR tests use the xunit runner 2015-12-18 09:18:44 -08:00
Pranav K 5f66403248 Remove TextWriter.ToString from RazorPage
Fixes #3668
2015-12-18 09:12:28 -08:00
Pranav K c5b6efd6bf Move buffer types to ViewFeatures
Use buffer pooling in more places
2015-12-17 21:05:18 -08:00
Pranav K 0b9b99e617 Don't throw if LocalizedString is null 2015-12-17 20:56:37 -08:00
John Luo 09df979acf Reacting to new Hosting API 2015-12-17 20:55:30 -08:00
John Luo efcc7ae956 Reacting to new Hosting API 2015-12-17 19:14:35 -08:00
John Luo fdf0b84136 Reacting to new Hosting API 2015-12-17 19:12:04 -08:00
damianedwards 0c3e7b5a75 Improve usability of IHtmlLocalizer & associated API:
- IHtmlLocalizer no longer derives from IStringLocalizer
- IHtmlLocalizer indexer now returns LocalizedHtmlString
- IHtmlLocalizer has GetString methods now that act the same as IStringLocalizer.GetString
- Made LocalizedHtmlString a struct to match LocalizedString
- Updated samples in response to aspnet/Localization#167
- Rename "ancestor" to "parent" for loc API
- Fixes some doc comments
- Fixed tests
- #3716
2015-12-17 16:35:19 -08:00
Andrew Stanton-Nurse 63c47a9c6d Revert "fix travis RID detection in KoreBuild"
This reverts commit c72ba87878.
2015-12-17 16:30:17 -08:00
Andrew Stanton-Nurse c72ba87878 fix travis RID detection in KoreBuild 2015-12-17 16:29:03 -08:00
damianedwards f55f32fdb8 Make LocalizedString a class 2015-12-17 15:46:40 -08:00
Chris R 3809613618 Add missing System.ComponentModel dependency. 2015-12-17 15:37:20 -08:00
Pranav K 37c167aa74 Adding UrlEncoder to the ServiceCollection 2015-12-17 15:34:10 -08:00
damianedwards f7f8d9b9eb Rename "ancestor" to "parent" on loc APIs 2015-12-17 15:25:39 -08:00
John Luo bd10d507f8 Reacting to new Hosting API 2015-12-17 15:08:17 -08:00
David Fowler 1c70ff4d13 API changes to Hosting and TestServer #525 2015-12-17 14:52:42 -08:00
Cesar Blum Silveira 717b355bfd Merge branch 'benaadams/horizontal-initalize' into dev 2015-12-17 14:37:48 -08:00
Pranav K 0720d23a19 More reactions to DI 2015-12-17 14:11:58 -08:00
Ryan Nowak 1c0996c625 Add a sample demonstrating Antiforgery with AJAX 2015-12-17 13:29:45 -08:00
N. Taylor Mullen 2b77744f96 React to aspnet/Razor#630.
- `TagHelperDescriptorFactory` is no longer static.
2015-12-17 12:13:52 -08:00
Pranav K a036ff4738 Reacting to DI changes 2015-12-17 12:03:29 -08:00
Andrew Stanton-Nurse e27ce7b512 update to fixed install.ps1 2015-12-17 12:00:58 -08:00
Pranav K 35f9de5ae1 Reacting to DI and PlatformAbstraction changes 2015-12-17 11:45:48 -08:00
Louis DeJardin c95d816c1d Updating unit test to probe _features cache field state 2015-12-17 11:18:44 -08:00
N. Taylor Mullen dbe4ce06f2 Cache XML file information when creating design time based `TagHelperDescriptor`s.
- Prior to this change we'd hit the disk every time we'd create a `TagHelperDesignTimeDescriptor` to locate an assemblies XML files.
- Did not want to tie the XML cache to a static member in-case a user updates their XML information between parses. Therefore, changed `TagHelperDescriptorFactory` and `TagHelperDesignTimeDescriptorFactory` to no longer be static.
- Put the same `TagHeleprDescriptorFactory` extensibility point as we had for its counterpart `TagHelperTypeResolver` to stay consistent. This involved making `CreateDescriptors` virtual and allowing it to be provided in the `TagHelperDescriptorResolver` constructor.

#630
2015-12-17 11:12:19 -08:00
Chris R 2dc31546b6 #162 Remove an extra websocket reference. 2015-12-17 09:19:25 -08:00
Ben Adams 7625f65e6c Faster MemoryPoolIterator2.CopyFrom 2015-12-17 11:32:01 +00:00
Ben Adams 186f6d0a05 Horizontal initialize repeat vectors once 2015-12-17 10:18:20 +00:00
Louis DeJardin 35d71068d4 PR feedback 2015-12-16 22:46:20 -08:00
Louis DeJardin 290ff2a268 PR feedback 2015-12-16 22:37:07 -08:00
Louis DeJardin 4265855652 PR feedback
Adding comment about reason for public field
2015-12-16 22:35:41 -08:00
Louis DeJardin c05c203c28 Adding example of what http context pooling might look like 2015-12-16 22:02:05 -08:00
Louis DeJardin 0e3fe7493e Streamlining feature cache and object re-initialiation code paths
Shouldn't increase object size, but does improve maintainability
2015-12-16 20:01:55 -08:00
Andrew Stanton-Nurse 29b1c2282e actually tested DorkBuild this time :) 2015-12-16 17:46:36 -08:00
Stephen Halter 5d6fdc5eb5 Merge branch 'benaadams/vector.dot' into dev 2015-12-16 17:39:40 -08:00
Andrew Stanton-Nurse 92121e62d9 fix DorkBuild 2015-12-16 17:28:34 -08:00
ryanbrandenburg 70f9431e7f * Fix test failure 2015-12-16 17:21:25 -08:00
Andrew Stanton-Nurse 3ae5110441 probe for Mono reference assemblies in DorkBuild 2015-12-16 17:02:41 -08:00
damianedwards b041a07652 Change culture fallback to depth-first:
- #112
2015-12-16 16:11:22 -08:00
Stephen Halter 67a0165aec Merge branch 'benaadams/headers.clearfast' into dev 2015-12-16 15:48:01 -08:00
damianedwards e72d3cb249 ResourceManagerStringLocalizerFactory trims app name from resource base name:
- Only applies when LocalizationOptions.ResourcesPath is set
- #167
2015-12-16 15:38:25 -08:00