389 Commits

Author SHA1 Message Date
Ramón Tomás
6f8512f434 Increased circuit breaker threshold
Fix lifescope issue with IHttpClient
Adapt circuit breaker to trigger its counter for no success http response
2017-03-22 12:24:55 +01:00
RamonTC
ec71fbb5ae Remove async await issue comments 2017-03-21 12:52:59 +01:00
RamonTC
8c6d880f18 Remove async await issue comments
Thanks for the review!
2017-03-21 12:51:25 +01:00
Bill Wagner
00491910a2 C# 7 language feature updates
Controllers/AccountController:
Replace single line methods with expression bodied members.
Includes constructor, C# 7 feature.

Controllers/CatalogController:
Remove unnecessary ToString() call.
Replace single line methods with expression bodied members.

Extensions/HttpClientExtensions:
Replace single line methods with expression bodied members.

Extensions/SessionExtensions:
Replace single line methods with expression bodied members.

Services/BasketService:
Remove unnecessary ToString() calls.
Add ?? to simplify conditional initialization
Use TryGetValue and out variable initialization to simplify Quantity
calculation

Services/CatalogService:
Use Value<T> generic method instead of dynamic types.
There is a lot of overhead for dynamic and it seems overkill here.

Services/IdentityParser:
Use the pattern matching is expression.
Refactor the LINQ queries to enumerate the collection (and create an
enumerator)
only once. The previous code had 3 enumerations.

Services/Utilities/HttpApiClient:
Remove the 'async' modifier and 'await' statements from methods where
the only asynchronous statement is the final statement of the method,
and
the task from the underlying method can be returned.

Services/Utilities/HttpApiClientWrapper:
Use expression bodied members where applicable.
Remove the 'async' modifier and 'await' statements from methods where
the only asynchronous statement is the final statement of the method,
and
the task from the underlying method can be returned.

ViewComponents/Cart:
Use expression bodied members where applicable.

ViewComponents/CartList:
Use expression bodied members where applicable.
Remove the 'async' modifier and 'await' statements from methods where
the only asynchronous statement is the final statement of the method,
and
the task from the underlying method can be returned.

ViewModels/Annotations/CardExpiration:
Use the out variable initializer to simplify the validation of the
card expiration date.

ViewModels/Basket:
Use property initializer syntax instead of constructor body

ViewModels/CatalogViewModels/IndexViewModel:
Use expression bodied property to return the calculated 'Disabled'
property

ViewModels/Order:
Use property initializer syntax.
2017-03-20 14:18:20 -04:00
etomas
3ec61e0df6 Tried patch proposed by Sandeep Bansal 2017-03-18 11:13:20 +01:00
Ramón Tomás
ddb03a0aa8 Refactoing HttpClientApi 2017-03-17 13:12:34 +01:00
Ramón Tomás
cb3f682872 Created Retry and CircuitBreaker policies for MVC App 2017-03-17 10:00:18 +01:00
DESKTOP-V1VLQ15\dsanz
0c4f8a49dd WebMVC and WebSPA show now a changed price in the basket list 2017-03-15 14:57:08 +01:00
DESKTOP-V1VLQ15\dsanz
f1ffb95abf Merge branch 'dev' into integration-events-rmq
# Conflicts:
#	docker-compose.override.yml
#	eShopOnContainers-ServicesAndWebApps.sln
2017-03-14 11:50:28 +01:00
dsanz
4e5e32c6aa Add old price property for the basket in the WebMVC 2017-03-13 12:15:41 +01:00
Cesar De la Torre
3e795ac3ce Revert "Revert "Removes Docker profile from launchSettings.json"" 2017-03-09 12:50:41 -08:00
Cesar De la Torre
ee13198242 Revert "Removes Docker profile from launchSettings.json" 2017-03-09 11:59:29 -08:00
David Zhao (DEVDIV)
9edf68ba11 Removes Docker profile from launchSettings.json 2017-03-09 10:27:33 -08:00
Cesar De la Torre
4469a4b851 Raising the number of retries with exponential backoff so in potential slower machines there's time enough.
Related to issue:
https://github.com/dotnet/eShopOnContainers/issues/97
2017-03-08 17:10:34 -08:00
etomas
c38e078265 Deleting windows container files as they are not still supported 2017-03-06 15:00:41 +01:00
glennc
4aafa813f5 a couple of quick changes to allow building in the docker-compose.ci.build.yml 2017-03-05 19:55:46 -08:00
etomas
dd6189fe57 Fixing style error (debug css not included on output) after merging #68 into master 2017-03-03 20:23:06 +01:00
etomas
29473b455f Merge branch 'vs2017' 2017-03-03 19:40:55 +01:00
dsanz
7be05293f9 Refactor in pagination view to use tag helpers 2017-03-03 16:17:40 +01:00
dsanz
a8d2fafb79 Fix for wrong items per page calculation for the view 2017-03-03 16:12:38 +01:00
dsanz
a1f2cc9975 Fix for issue #67 https://github.com/dotnet/eShopOnContainers/issues/67 renamed Models folder to ViewModels in WebMVC 2017-03-03 16:00:15 +01:00
etomas
f9b15481d1 Idempotent updates based on requestid 2017-03-03 12:03:31 +01:00
etomas
32bb724d80 Simplifying use of windows containers 2017-03-02 15:54:30 +01:00
etomas
faa24c757c Docker files added again
docker-use-platform creates mark file
2017-03-01 12:03:37 +01:00
Charles Lowell
75d5c3695a Fix Identity.API and WebMVC publishing
- upgrade BundlerMinifier.Core dependencies (fixes a globbing bug)
- ensure minification includes all css
- only copy what's needed in production to the publish directory
2017-02-28 15:01:52 -08:00
Charles Lowell
7755f30618 Use relative paths & URLs 2017-02-28 14:54:22 -08:00
Charles Lowell
3df4f3a206 Configure service URLs via environment variables 2017-02-28 14:54:21 -08:00
etomas
92daab8fae Unwanted files (now Dockerfiles are autogenerated) 2017-02-24 18:09:08 +01:00
etomas
79615664cf Dockerfiles for win and linux containers 2017-02-24 18:07:52 +01:00
etomas
5b97c7329b Infrastructure to support Dockerfiles for both Windows & Linux 2017-02-23 16:39:18 +01:00
Bill Wagner
bb5d48735d update build script for Mac
Until adding these, the project would not build correctly on a Mac.

script working for SPA

Add execute permissions to build-bits.sh on macOS

fix a rebase / automatic merge issue.

Somehow, the MVC image got in there twice.

update content nodes

Bug workaround for for the CLI. It turns out that the CLI does not
handle content nodes that have multiple paths. Instead, multiple nodes
are needed.

use the standard names for the web docker images.

fix a typo and update the csproj content listings.

Also, execute nom install as part of publishing  the spa application.
2017-02-21 14:04:35 -05:00
Cesar De la Torre
9ccf7f11ce Changes for CLI compatibility and New .PDF version 2017-02-16 12:31:53 -08:00
Cesar De la Torre
2576c695ad Raising number of Retries With Exponential Backoff so slower machines don't get a "maxNumber of retries reached" exception.. 2017-02-16 11:16:47 -08:00
Cesar De la Torre
68ad1895c6 Fixed bug https://github.com/dotnet/eShopOnContainers/issues/45
with Retry with Exponential Backoff
2017-02-15 23:12:37 -08:00
etomas
c7e362ac67 Docker files ready for the Visual Studio Docker Tools
Everything works as exepcted except SPA version which need further adjustments
2017-02-14 18:11:51 +01:00
etomas
af14d37378 Projects migrated to vs2017 csproj format 2017-02-14 16:23:26 +01:00
etomas
289d15b79a Removed unwanted style for solving #31 2017-02-10 16:08:10 +01:00
etomas
8522e4e288 webs updated to netcore1.1 2017-02-08 12:05:27 +01:00
etomas
d07b98468b Issue #9 - Do not hold the ASP.NET Core Configuration object as Singleton in the IoC container 2017-02-06 13:53:36 +01:00
PLAINCONCEPTS\ccanizares
1c1f7571e6 - Some minor refactoring (renaming) and make work web clients applications that were 'broken' after refactoring dtos in ordering service in this branch.
- Update dockerfile to asp.net 1.1 in ordering
2017-01-30 15:46:43 +01:00
PLAINCONCEPTS\ccanizares
cdffaf1ce1 MVC: Add To Cart bug.
SPA: Add To Cart 'bug', Update Basket.
2017-01-11 12:23:05 +01:00
PLAINCONCEPTS\ccanizares
637d709e36 Identity: Issuer fix for Xamarin against docker scenario 2017-01-10 15:14:05 +01:00
PLAINCONCEPTS\ccanizares
2e84154e37 SPA: override with compose settings (environment variables) configuration in spa angular settings service. 2017-01-10 11:37:36 +01:00
PLAINCONCEPTS\ccanizares
b426becd23 . 2017-01-04 17:41:25 +01:00
PLAINCONCEPTS\ccanizares
6c64c72896 . 2017-01-04 17:40:43 +01:00
Quique Fernandez
a29e9d6357 Fix form styles and placeholders on both websites 2016-12-30 16:44:36 +01:00
Carlos Cañizares Estévez
f2681b93d2 SPA: Merge 2016-12-30 12:28:28 +01:00
Carlos Cañizares Estévez
a42f47b3f6 SPA: Observable for basket-status refresh when basket is dropped 2016-12-30 12:26:12 +01:00
Quique Fernandez
de5c81b9d7 Fix uppercase text on some views on both websites 2016-12-30 12:07:08 +01:00
Quique Fernandez
4104e6d931 Fix Edge and IE11 bug with pointer-events 2016-12-30 11:55:48 +01:00