714 Commits

Author SHA1 Message Date
Cesar De la Torre
313976da80 Fixed bugs related to the Product Update and PriceChangedIntegrationEvent. It was updating only when the price was changing... additional refactoring performed, too. 2017-03-25 14:47:23 -07:00
Cesar De la Torre
92777dc538 Merge branch 'dev' of https://github.com/dotnet/eShopOnContainers into dev 2017-03-24 15:37:38 -07:00
David Britch
703d87eaef LoginView displays validation errors when using mock services. 2017-03-24 14:49:06 +00:00
Eduard Tomas
5b9b92397d Updates to dockerfile / docker-compose for windows containers 2017-03-24 13:15:40 +01:00
dsanz
0372fada82 IntegrationEventLogService refactoring 2017-03-24 12:37:44 +01:00
Eduard Tomas
45499808b9 Merge remote-tracking branch 'origin/windows-containers-test' into dev 2017-03-24 09:35:57 +01:00
Cesar De la Torre
85b65753c9 Minor update 2017-03-23 14:45:57 -07:00
Eduard Tomas
561ba3b1ec 1st version of healthcheck & webstatus 2017-03-23 19:10:55 +01:00
Ramón Tomás
007525b4cc Merge branch 'dev' into Validation-decorator-integration 2017-03-23 13:46:21 +01:00
Ramón Tomás
94c7fd31e1 Added decorator for validation in commands
Added Validation for orders and identified commands
2017-03-23 13:44:15 +01:00
dsanz
6e4d9461de Add shared scope transaction between updating catalog product priceand store ProductPriceChangedIntegrationEvent. Added service to encapsulate logic for storage of integration event logs. 2017-03-23 13:24:17 +01:00
dsanz
dee6ea7342 Merge branch 'dev' of https://github.com/dotnet/eShopOnContainers into dev 2017-03-22 16:10:55 +01:00
dsanz
7a63490558 Add the sql implementation for the storage of Integration events. 2017-03-22 16:10:46 +01:00
Eduard Tomas
9893c29d4b Merge branch 'c#7-features' into dev 2017-03-22 14:41:43 +01:00
Eduard Tomas
20d2e32719 Ups... too many parens xD 2017-03-22 14:40:00 +01:00
dsrodenas
3c252cc646 Merge pull request #130 from dotnet/c#7-features
Using some C#7 features
2017-03-22 14:31:40 +01:00
Eduard Tomas
2e674ad532 Replaced Tuple by C#7 multiple return statement
Replaced private set only used in ctor by readonly prop
2017-03-22 14:23:25 +01:00
Ramón Tomás
449ee3f7a3 Increase Retries in HttpClientWrapper 2017-03-22 12:40:20 +01:00
Ramón Tomás
a07207a7b7 Merge branch 'dev' of https://github.com/dotnet/eShopOnContainers into dev 2017-03-22 12:34:31 +01:00
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
dsanz
696610ed36 Fix #129 Post_update_product_price_and_catalog_and_basket_list_modified test failing 2017-03-22 09:57:08 +01:00
Charles Lowell
4dc56c4bf7 Enable IP address connection string in Basket.API
Dns.GetHostAddressesAsync can return problematic results when passed an IP address, and if the connection string is already an IP address, we needn't call it anyway.
2017-03-21 13:57:43 -07:00
Charles Lowell
e5cc7cd944 Workaround for WebSPA publish issue
Due to aspnet/websdk #114, dotnet publish only copies to the output directory files which existed before the command was run.
2017-03-21 13:57:42 -07:00
Charles Lowell
ed87b6b845 Use <base> to enable relative paths in WebSPA 2017-03-21 13:57:42 -07:00
Cesar De la Torre
bb39e5fd6e Minor comment change 2017-03-21 12:58:07 -07:00
Cesar De la Torre
cb4da9864d Dispatching Domain Events right before DbContext SaveChanges() so side effects from additional Domain Event Handlers are included within the same transaction 2017-03-21 12:55:33 -07:00
Charles Lowell
68c3ebaf46 Set data protection application discriminators
This prevents cookie confusion when applications are hosted at the same domain and path. For example, under default settings, WebMVC may attempt to decrypt Identity's antiforgery cookie rather than its own.
2017-03-21 10:42:37 -07:00
Eduard Tomàs
cc98475182 Merge pull request #126 from BillWagner/csharp7-on-mvcapp
C# 7 language feature updates
2017-03-21 13:32:05 +01:00
dsanz
8a689c45f2 Add Delete and Create actions to the CatalogController. 2017-03-21 13:10:40 +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
Cesar De la Torre
1e6954b529 Merge pull request #124 from dotnet/bugs/#72-SPAIssueWithNewestNodeVersions
Resolved SPA incompatibilities with dependencies
2017-03-20 11:14:55 -07:00
Cesar De la Torre
29dc6b41ca Merge pull request #123 from dotnet/bugs/61-AsyncSuffixNamingConvention
Fix #61 Async suffix for namig convention.
2017-03-20 10:59:07 -07:00
Cesar De la Torre
b1b7ca5a4c Merge pull request #122 from dotnet/bugs/#75-NoRetryLoginAtCatch
Removed the catch with retry logic from CatalogContextSeed
2017-03-20 10:49:34 -07:00
David Britch
433de15fdc Unused x:Name references removed. 2017-03-20 17:16:42 +00:00
David Britch
531e90e5a3 Removed unused services from view models. 2017-03-20 17:05:35 +00:00
David Britch
4a073b96d8 Removed unused code from NavigationService. 2017-03-20 16:58:37 +00:00
David Britch
33009ceb33 Renamed MessengerKeys class to MessageKeys. 2017-03-20 16:36:38 +00:00
David Britch
efa81cf842 ViewModelLocator is now responsible for connecting view models to views.
Uses an auto-wiring convention-based approach.
2017-03-20 16:31:35 +00:00
David Britch
721e35f724 Merge branch 'master' into xamarin 2017-03-20 16:02:48 +00:00
David Britch
00311b45d4 Replaced async void methods with async Task. 2017-03-20 15:51:05 +00:00
Ramón Tomás
66d612a826 Resolved SPA incompatibilities with dependencies when installing a newer node version 2017-03-20 16:46:57 +01:00
David Britch
561208ca81 AnimationExtension isn't used. 2017-03-20 15:42:24 +00:00
dsanz
de8aded2b0 Fix #61 Async suffix for namig convention. 2017-03-20 16:12:11 +01:00
Ramón Tomás
8a054ed349 Removed the catch with retry logic from CatalogContextSeed and create a retry loop at startup for db availability 2017-03-20 15:37:31 +01:00
Danny Chen
260df610b7 use non generic repository interface 2017-03-20 01:42:31 -04:00
Cesar De la Torre
aee1ac6a06 Domain Event Handlers refactored with some missing cases 2017-03-18 22:01:05 -07:00
Cesar De la Torre
3ed136b00f Domain Event Handlers are now grouped by Domain Events, as any Domain Event could have 'n' handlers related. 2017-03-18 11:44:18 -07:00
etomas
3ec61e0df6 Tried patch proposed by Sandeep Bansal 2017-03-18 11:13:20 +01:00