Commit Graph

63 Commits

Author SHA1 Message Date
Chris R d927314047 Add missing namespaces. 2015-08-31 10:23:01 -07:00
Chris R 2a1cf633fc Use new HttpContext.Features API. 2015-08-31 09:55:57 -07:00
Troy Dai cc0c4e1f55 Update CoreCLR versions 2015-08-04 10:15:29 -07:00
damianedwards 39f40d2c5f Fix references to include beta-* 2015-05-29 11:46:24 -07:00
Hisham Abdullah Bin Ateya 8382170178 Unnecessary using directives 2015-05-21 03:44:19 +03:00
damianedwards 4ba159afe7 Removed Moq from tests & enabled .NET Core
- Introduced AssemblyWrapper to enable testing
- Cleaned up properties on ResourceManagerStringLocalizer
- #15

Change "Strategy" to "Provider"
- #19
2015-05-20 14:41:52 -07:00
damianedwards ecfb7f342a Sort project.json dependencies 2015-05-15 12:14:14 -07:00
damianedwards 21dc2909a1 Made IRequestCultureStrategy async to support things like user profile lookup 2015-05-11 18:29:03 -07:00
damianedwards 306d71ef43 Moved some things around:
- Options are now given to strategies
- Options only contains properties relevant to the middleware itself. Strategies can have their own properties, e.g. AcceptLanguageHeaderRequestCultureStrategy limits the number of values in the header to try
- Strategies now derive from common base class and validate against the options, e.g. app specified supported cultures
- Renamed RequestLocalizationMiddlewareOptions to RequestLocalizationOptions
- Fixed missing doc comments
2015-05-11 15:28:50 -07:00
damianedwards 9834a27728 Culture names are now limited to a known list:
- Added tool to generate a set of known culture names from the OS/Fx
- CultureInfoCache is now limited to only caching/returning cultures from the known list
- #6
2015-05-11 12:58:18 -07:00
damianedwards 944c84bc5d Implemented CookieRequestCultureStrategy & other changes:
- Updated sample to enable setting/clearing cultures via cookie
- Cache CultureInfo construction as it's not built into .NET Core
- Cache RequestCulture construction as they're immutable anyway and created lots per app if the middleware is running
- Fix issue where by invalid culture names were not handled (it crashed)
- Handle the pesky favicon.ico request from browsers
- Ignore .vs folder
2015-05-07 18:11:10 -07:00
damianedwards 41fe215027 Sample improvements 2015-05-06 18:21:34 -07:00
damianedwards 3dc0d40f7d Added a sample & fixed some issues it found 2015-05-06 18:09:59 -07:00