Commit Graph

38 Commits

Author SHA1 Message Date
hishamco 40e54bf77d Minor Fixes
Remove the blank line before conditional block

Remove versions from project.json in test projects

Address feedback

Address feedback

Add CommandLine configuration package to avoid breaking test

Add missing using
2016-11-12 00:04:38 +03:00
Pranav K 837e5c4b1b Updating to netcoreapp1.1 2016-10-13 11:19:32 -07:00
Pranav K 9bf00ffac2 Revert "Updating to netcoreapp1.1"
This reverts commit cc4fd635a6.
2016-10-12 16:08:58 -07:00
Pranav K cc4fd635a6 Updating to netcoreapp1.1 2016-10-12 13:45:45 -07:00
Ryan Brandenburg d84b069116 Make resource lookup behavior overridable (#266) 2016-08-08 11:45:42 -07:00
Hisham Bin Ateya b72816e24c Remove unecessary using (#242) 2016-05-16 14:44:29 -07:00
BrennanConroy 693f58c18f Remove references to UseDefaultHostingConfiguration 2016-04-27 16:26:23 -07:00
Pavel Krymets 9268ca73df Migrate tests, tools and samples to portable 2016-04-15 12:04:16 -07:00
John Luo c9d53ad14b Move web.config and use ANCM 2016-04-11 10:04:14 -07:00
Kiran Challa 624467286d Changed DNX451 references to NET451 2016-04-08 15:03:58 -07:00
John Luo dfb1f9c712 Reacting to Kestrel extensions 2016-03-30 16:23:13 -07:00
John Luo c69a159672 React to Hosting changes 2016-03-22 12:04:03 -07:00
Pranav K 1d76db4d36 Removing ifdefs from test
Fixes #210
2016-03-17 16:44:54 -07:00
N. Taylor Mullen b746844466 Transition to netstandard.
- dotnet5.X => netstandard1.y (where y = x-1).
- DNXCore50 => netstandardapp1.5.
- Applied the same changes to ifdefs.
2016-03-01 13:38:14 -08:00
Hisham Bin Ateya a928982055 Localization Sample Fix 2016-02-22 12:54:10 -08:00
Hisham Bin Ateya 3590cacd3f Add 'UseServer' 2016-02-03 02:12:37 +03:00
Pavel Krymets bc4426cf44 Fix sample on CoreClr 2016-02-02 12:52:59 -08:00
N. Taylor Mullen 4010676634 Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:55 -08:00
John Luo 0bd2e3281d Reacting to hosting rename 2016-01-17 17:56:43 -08:00
Chris R 30b71fb8c5 React to hosting API changes. 2016-01-12 14:22:45 -08:00
John Luo 5c2bdc8923 Updating to new options pattern 2016-01-07 18:26:38 -08:00
John Luo d9fc399531 Standardizing middleware to use configureOptions lambda 2015-12-22 21:57:56 -08:00
John Luo 5c98dd5d98 Reacting to new Hosting API 2015-12-18 15:52:58 -08:00
damianedwards 0b013ae769 Usability improvements:
- Remove the defaultRequestCulture parameter from IApplicationBuilder.UseRequestLocalization and make it a property on RequestLocalizationOptions instead
- Have just a single overload for IApplicationBuilder.UseRequestLocalization that takes the options
- #164
2015-12-11 15:21:07 -08:00
Kirthi Krishnamraju 636459a6f7 Fix #111: Design changes to known/allowed culture list and cache 2015-10-23 00:41:07 -07:00
Pranav K f782d8845c Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:49 -07:00
Kirthi Krishnamraju 06aa2412a8 Update sample to use LocalizationOptions and fixed issue in AddLocalization 2015-09-17 11:08:03 -07:00
Kirthi Krishnamraju a5a264d1ad fix #3: Add localized resources to the sample 2015-09-14 16:46:43 -07:00
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
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 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