27 Commits

Author SHA1 Message Date
Cesar De la Torre
2e5dca4467 Minor refactoring related to Circuit Breaker, Exponential Backoff and the Order controller 2017-03-28 19:48:04 -07: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
Ramón Tomás
cb3f682872 Created Retry and CircuitBreaker policies for MVC App 2017-03-17 10:00:18 +01:00
etomas
29473b455f Merge branch 'vs2017' 2017-03-03 19:40:55 +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
Charles Lowell
7755f30618 Use relative paths & URLs 2017-02-28 14:54:22 -08: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
Carlos Cañizares Estévez
0e7e4e41d7 MVC: Solve feedback, improve validations
Identity: Solve Microsoft Edge problem
Ordering: Remove application tier
2016-12-20 12:22:28 +01:00
Carlos Cañizares Estévez
31753fc057 MVC: Finish Orders integration (detail), validations, some refactor ...
Orders: Detail Query, new field in OrderDetail..
Identity: Validations in Register View, ensure all claims are returned in user end point..
2016-12-17 14:41:16 +01:00
Carlos Cañizares Estévez
9e72fe7c7c Order items in ordering api 2016-12-14 18:23:57 +01:00
Carlos Cañizares Estévez
64d3919a80 Secure orders api and add bearer token in calls from MVC application to orders api. 2016-12-12 10:15:24 +01:00
Carlos Cañizares Estévez
42f3537441 scripts to build individual services, readme files for all services and clients, compose in all projects, fix build problems (Dependent seeds), solve some kwnon build problems in solution (identity on localhost, ...) 2016-12-07 13:57:31 +01:00
Carlos Cañizares Estévez
0a344f6cdc Improvements in identity, securice basket api, login-logout from mvc application and consume securiced basket. 2016-11-29 15:10:16 +01:00
Carlos Cañizares Estévez
a939fe7a51 MVC App: Authentication against IdentityService and Order Api basic integration. 2016-11-28 12:58:51 +01:00
Carlos Cañizares Estévez
6cff3aaf50 Basket microservice integration in MVC web, remove session from MVC Site, docker-compose to include Basket.api and Redis image. 2016-11-16 10:19:00 +01:00
Carlos Cañizares Estévez
cc2ecf7f8b Resolve some feedback in catalog section 2016-11-10 09:13:08 +01:00
Carlos Cañizares Estévez
1002356493 Fixed some issues in catalog filters and improve catalog views. 2016-11-07 18:37:11 +01:00
Carlos Cañizares Estévez
c509101845 Integration with Catalog api, filter and pagination. 2016-11-05 11:09:14 +01:00
Carlos Cañizares Estévez
eb7298c617 Add Checkout view, My Orders view and Order Detail View, and Mvc flow for this Views... 2016-11-03 17:17:26 +01:00
Carlos Cañizares Estévez
65e633e4e0 Add to Cart flow and views 2016-11-02 20:41:12 +01:00
Carlos Cañizares Estévez
b079e6ba79 Add Cart Flow 2016-10-31 17:56:24 +01:00
Carlos Cañizares Estévez
cbf3310cd1 Filter in product list and pagination 2016-10-31 09:25:47 +01:00
Carlos Cañizares Estévez
c424f0816a Web MVC site UI apperance 2016-10-21 05:46:30 +02:00
Cesar De la Torre
67e94c3c45 - Consuming Ordering.API microservice from WebMVC app
- SQL DB updated with EF Migrations
- build-images.ps1 updated
2016-10-10 21:52:57 -07:00
Cesar De la Torre
8cc57c2542 WebMVC project folder simplified and migrated to latest version of VS Tools for Docker 2016-10-07 17:13:05 -07:00