Skip to content

Commit 630cb35

Browse files
Sumit GhoshJcolemanNRIEvangelist
authored
Updates to .NET 6.0 (dotnet-architecture#1786)
* Seeking feedback: Build and run on .Net 6 preview 6 (dotnet-architecture#1734) * Updgrade build and hosting machines to .net6 latest * Target .net 6 * ILogger is ambiguous? * More ILogger ambiguity * Use preview 6... seeing errors in preview 7... * Of course the SDK version is different :) * downgrade the last nonworking component * Only restore the packages we need for the one off service stuck in .net 5 * Downgrade development docker files to use the preview 6 sdk * Updates `basket-api` to .NET 6 (dotnet-architecture#1742) * Use global usings * Use file-scoped namespaces * Updates docker images to preview 7 * Created a new migration plan * Included global usings for identity project * Updated docker file to preview version to 7 * Updated dockerfiles * Merged conent from Startup.cs to Program.cs * Removed Starup.cs * Removed unnecessary files * Revert "Removed unnecessary files" This reverts commit 536bddc. * Revert "Removed Starup.cs" This reverts commit 46175d7. * Revert "Merged conent from Startup.cs to Program.cs" This reverts commit 2766ea8. * Removed extra spaces * Updated basket-api project file * Update src/Services/Basket/Basket.API/Grpc/BasketService.cs Co-authored-by: David Pine <[email protected]> * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> * Moved the fully qualified namespace on top * Updated relevant packages in basket.api project * Updated relevant packages in identity.api project Co-authored-by: David Pine <[email protected]> * Updates all the services to .NET 6.0 (dotnet-architecture#1770) * Created global using file for catalog.api * Moved individual usings statements to globalusing * Updated catalog.api project * Fixed local run bug for catalog.api * Included globalusing for payment.api * Refactored namespace statement for payment.api * Moved namespaces to ordering.domain project * Included globalusing for ordering.domain project * Included globalusings for ordering.infrastructure project * Refactored namespaces for ordering.infrastructure project * Updated relevant packages in ordering.infrastructure project * Included globalusings for ordering.signalrHub project * Moved all the namespace to globalusings * Updated packages in ordering.signalrHub csproj file * Refactored namespace statements in catalog.api project * Fixed namespace name in ordering.domain * Included global usings for ordering.api project * Moved all usings to globalusing file * Updated ordering.api csproj project * Fixed bug in statup.cs * Updated ordering.unittests.csproj file * Included globalusings in webhooks.api project * Moved using statements to globalusing file in webhooks.api * Included globalusing for web.bff.shoppping aggregator project * Moved namespaces to globalusing shopping aggregator * Included globalusing mobile.bff.shoppping project * Moved namespaces to globalusing file * Included globalusing for eventbus project * Moved namespaces to global usings for eventbus * Included globalusing for EventBusRabbitMQ project * Moved using statements to EventBusRabbitMQ project * Included global using in EventBusServiceBus project * Moved using statements to globalusing for EventBusServiceBus * Included globalusing file for IntegrationEventLogEF project * Move using statements to globalusing file * Updated packages of IntegrationEventLogEF project * Included globalusing to Devspaces.Support project * Moved using statements to globalusing Devspaces * Updated dependent packages for Devspaces.Support.csproj * Fixed bug in Basket API * Fixed bug in catalog.api * Fixed bug Identity.API * Included globalusing to Basket.UnitTest project * Moved namespaces to Basket.UnitTest project * Updated packages of Basket.UnitTest csproj * Included globalusing for Basket.FunctionalTests project * Included file-scoped namespaces Basket.FunctionalTests * Updated packages of Basket.FunctionalTests.csproj file * Updated catalog unit test project to Net 6.0 * Included global usings for Catalog.FunctionalTests * Included file-scope namespace catalog.functionaltests * Updated packages of catalog.functionaltest csproj * Included MigrateDbContext method in HostExtensions * Included globalusing for ordering.UnitTests project * Included file-scope statement for Ordering.UnitTest project * Included globalusing for Ordering.FunctionalTests * Included file-scope namespace statement for using * Updated packages in Ordering.FunctionalTests.csproj * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> * Update src/Services/Ordering/Ordering.API/Startup.cs Co-authored-by: David Pine <[email protected]> * Update src/Services/Ordering/Ordering.Domain/Events/OrderStatusChangedToPaidDomainEvent.cs Co-authored-by: David Pine <[email protected]> * Update src/Services/Ordering/Ordering.SignalrHub/IntegrationEvents/EventHandling/OrderStatusChangedToSubmittedIntegrationEventHandler.cs Co-authored-by: David Pine <[email protected]> * Update src/Services/Ordering/Ordering.SignalrHub/IntegrationEvents/Events/OrderStatusChangedToAwaitingValidationIntegrationEvent.cs Co-authored-by: David Pine <[email protected]> * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> Co-authored-by: David Pine <[email protected]> * Updates WebMVC to .NET 6.0 (dotnet-architecture#1773) * Included globalusing WebMVC * Included file scope namespaces for all files * Updated dockerfile * Updated packages to WebMVC * Fixes few bugs in Net 6.0 service migration (dotnet-architecture#1774) * Created global using file for catalog.api * Moved individual usings statements to globalusing * Updated catalog.api project * Fixed local run bug for catalog.api * Included globalusing for payment.api * Refactored namespace statement for payment.api * Moved namespaces to ordering.domain project * Included globalusing for ordering.domain project * Included globalusings for ordering.infrastructure project * Refactored namespaces for ordering.infrastructure project * Updated relevant packages in ordering.infrastructure project * Included globalusings for ordering.signalrHub project * Moved all the namespace to globalusings * Updated packages in ordering.signalrHub csproj file * Refactored namespace statements in catalog.api project * Fixed namespace name in ordering.domain * Included global usings for ordering.api project * Moved all usings to globalusing file * Updated ordering.api csproj project * Fixed bug in statup.cs * Updated ordering.unittests.csproj file * Included globalusings in webhooks.api project * Moved using statements to globalusing file in webhooks.api * Included globalusing for web.bff.shoppping aggregator project * Moved namespaces to globalusing shopping aggregator * Included globalusing mobile.bff.shoppping project * Moved namespaces to globalusing file * Included globalusing for eventbus project * Moved namespaces to global usings for eventbus * Included globalusing for EventBusRabbitMQ project * Moved using statements to EventBusRabbitMQ project * Included global using in EventBusServiceBus project * Moved using statements to globalusing for EventBusServiceBus * Included globalusing file for IntegrationEventLogEF project * Move using statements to globalusing file * Updated packages of IntegrationEventLogEF project * Included globalusing to Devspaces.Support project * Moved using statements to globalusing Devspaces * Updated dependent packages for Devspaces.Support.csproj * Fixed bug in Basket API * Fixed bug in catalog.api * Fixed bug Identity.API * Included globalusing to Basket.UnitTest project * Moved namespaces to Basket.UnitTest project * Updated packages of Basket.UnitTest csproj * Included globalusing for Basket.FunctionalTests project * Included file-scoped namespaces Basket.FunctionalTests * Updated packages of Basket.FunctionalTests.csproj file * Updated catalog unit test project to Net 6.0 * Included global usings for Catalog.FunctionalTests * Included file-scope namespace catalog.functionaltests * Updated packages of catalog.functionaltest csproj * Included MigrateDbContext method in HostExtensions * Included globalusing for ordering.UnitTests project * Included file-scope statement for Ordering.UnitTest project * Included globalusing for Ordering.FunctionalTests * Included file-scope namespace statement for using * Updated packages in Ordering.FunctionalTests.csproj * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> * Update src/Services/Ordering/Ordering.API/Startup.cs Co-authored-by: David Pine <[email protected]> * Update src/Services/Ordering/Ordering.Domain/Events/OrderStatusChangedToPaidDomainEvent.cs Co-authored-by: David Pine <[email protected]> * Update src/Services/Ordering/Ordering.SignalrHub/IntegrationEvents/EventHandling/OrderStatusChangedToSubmittedIntegrationEventHandler.cs Co-authored-by: David Pine <[email protected]> * Update src/Services/Ordering/Ordering.SignalrHub/IntegrationEvents/Events/OrderStatusChangedToAwaitingValidationIntegrationEvent.cs Co-authored-by: David Pine <[email protected]> * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> * Apply suggestions from code review Co-authored-by: David Pine <[email protected]> * Fixed bugs in Mobile.BFF.Shopping project * Fixed bugs in Web.Bff.Shopping aggregator project * Fixed bugs in EventBusServiceBus project * Fixed bug in Mobile.Bff.Shopping project Co-authored-by: David Pine <[email protected]> * Updates webhook client project to .NET 6.0 (dotnet-architecture#1777) * Included globalusing file for webhookclient * Included file scope namespaces for Webhookclient * Updated packages in WebHookClient project * Updates webspa project to Net 6.0 (dotnet-architecture#1778) * Included globalusing in webspa project * Included file scoped namespace for webspa project * Updated packages in WebSPA project * Updates the Application.FunctionalTests project to .NET 6.0 (dotnet-architecture#1781) * Included globalusing in Application.FunctionalTests project * Included file scoped namespace * Renamed Azure.Messaging.ServiceBus namespace * Updates .NET version of Dockerfile to 6.0 (dotnet-architecture#1785) * Updatated package versions to RC2 * Updated package versions to RC2 * Updated Dockerfiles to .NET 6 RC2 * Changed docker file tag to 6.0 * Updated Program class * Updated globalusing file * Removed preview tag reference from Dockerfile.develop file * Updated dotnet version to .NET 6.0 * Updated all packages to the .NET 6.0 * Removed RC tag from dockerfile * Fixed bundleconfig json * Updated readme files * Fixed ingress yaml indentation * Included globalusing for WebStatus project * Updated WebStatus project to .NET 6.0 * Included scoped namespace * Updated Dockerfile of WebStatus to .NET 6.0 Co-authored-by: Josh Coleman <[email protected]> Co-authored-by: David Pine <[email protected]>
1 parent 42abcad commit 630cb35

File tree

537 files changed

+14789
-16107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

537 files changed

+14789
-16107
lines changed

.github/workflows/catalog-api.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
env:
2323
SERVICE: catalog-api
2424
IMAGE: catalog.api
25-
DOTNET_VERSION: 5.0.x
25+
DOTNET_VERSION: 6.0.x
2626
PROJECT_PATH: Services/Catalog/Catalog.API
2727
TESTS_PATH: Services/Catalog/Catalog.UnitTests
2828

.github/workflows/ordering-api.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
env:
2323
SERVICE: ordering-api
2424
IMAGE: ordering.api
25-
DOTNET_VERSION: 5.0.x
25+
DOTNET_VERSION: 6.0.x
2626
PROJECT_PATH: Services/Ordering/Ordering.API
2727
TESTS_PATH: Services/Ordering/Ordering.UnitTests
2828

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ In the future, more features will be implemented in the advanced scenario.
7272
**NEWS / ANNOUNCEMENTS**
7373
Do you want to be up-to-date on .NET Architecture guidance and reference apps like eShopOnContainers? --> Subscribe by "WATCHING" this new GitHub repo: https://github.com/dotnet-architecture/News
7474

75-
## Updated for .NET 5
75+
## Updated for .NET 6
7676

77-
eShopOnContainers is updated to .NET 5 "wave" of technologies. Not just compilation but also new recommended code in EF Core, ASP.NET Core, and other new related versions with several significant changes.
77+
eShopOnContainers is updated to .NET 6 "wave" of technologies. Not just compilation but also new recommended code in EF Core, ASP.NET Core, and other new related versions with several significant changes.
7878

7979
**See more details in the [Release notes](https://github.com/dotnet-architecture/eShopOnContainers/wiki/Release-notes) wiki page**.
8080

@@ -86,7 +86,7 @@ eShopOnContainers is updated to .NET 5 "wave" of technologies. Not just compilat
8686
8787
### Architecture overview
8888

89-
This reference application is cross-platform at the server and client-side, thanks to .NET 5 services capable of running on Linux or Windows containers depending on your Docker host, and to Xamarin for mobile apps running on Android, iOS, or Windows/UWP plus any browser for the client web apps.
89+
This reference application is cross-platform at the server and client-side, thanks to .NET 6 services capable of running on Linux or Windows containers depending on your Docker host, and to Xamarin for mobile apps running on Android, iOS, or Windows/UWP plus any browser for the client web apps.
9090
The architecture proposes a microservice oriented architecture implementation with multiple autonomous microservices (each one owning its own data/db) and implementing different approaches within each microservice (simple CRUD vs. DDD/CQRS patterns) using HTTP as the communication protocol between the client apps and the microservices and supports asynchronous communication for data updates propagation across multiple services based on Integration Events and an Event Bus (a light message broker, to choose between RabbitMQ or Azure Service Bus, underneath) plus other features defined at the [roadmap](https://github.com/dotnet-architecture/eShopOnContainers/wiki/Roadmap).
9191

9292
![](img/eshop_logo.png)

branch-guide.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
Following are the most important branches:
44

5-
- `dev`: Contains the latest code **and it is the branch actively developed**. Note that **all PRs must be against the `dev` branch to be considered**. This branch is developed using `.NET 5`
6-
- `main`: Synced time to time from `dev`.It contains "stable" code, although not the latest one. Right now, this branch contains changes specific to `.NET Core 3.1`
5+
- `dev`: Contains the latest code **and it is the branch actively developed**. Note that **all PRs must be against the `dev` branch to be considered**. This branch is developed using `.NET 6`
6+
- `release/net-5`: Contains the code changes specific to the `.NET 5`
7+
- `release/net-3.1.1`: Contains the code changes specific to the `.NET 3.1`
8+
9+
> [!DISCLAIMER]: The `main` branch contains the old code base and will get obsolete in the future. So it's recommended to refer to different [tags](https://github.com/dotnet-architecture/eShopOnContainers/tags) to avoid any confusion.
710
811
Any other branch is considered temporary and could be deleted at any time. Do not submit any PR against them!
912

deploy/k8s/nginx-ingress/local-dockerk8s/mvc-fix.yaml

+20-18
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ metadata:
1111
namespace: default
1212
spec:
1313
rules:
14-
http:
15-
paths:
16-
- path: /webmvc
17-
pathType: Prefix
18-
backend:
19-
service:
20-
name: webmvc
21-
port:
22-
number: 80
14+
- host: localhost
15+
http:
16+
paths:
17+
- path: /webmvc
18+
pathType: Prefix
19+
backend:
20+
service:
21+
name: webmvc
22+
port:
23+
number: 80
2324
---
2425
apiVersion: networking.k8s.io/v1
2526
kind: Ingress
@@ -34,12 +35,13 @@ metadata:
3435
namespace: default
3536
spec:
3637
rules:
37-
http:
38-
paths:
39-
- path: /identity
40-
pathType: Prefix
41-
backend:
42-
service:
43-
name: identity
44-
port:
45-
number: 80
38+
- host: localhost
39+
http:
40+
paths:
41+
- path: /identity
42+
pathType: Prefix
43+
backend:
44+
service:
45+
name: identity
46+
port:
47+
number: 80
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,35 @@
1-
using System.Collections.Generic;
1+
namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator.Config;
22

3-
namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator.Config
3+
public class UrlsConfig
44
{
5-
public class UrlsConfig
5+
public class CatalogOperations
66
{
7-
public class CatalogOperations
8-
{
9-
public static string GetItemById(int id) => $"/api/v1/catalog/items/{id}";
7+
public static string GetItemById(int id) => $"/api/v1/catalog/items/{id}";
108

11-
public static string GetItemsById(IEnumerable<int> ids) => $"/api/v1/catalog/items?ids={string.Join(',', ids)}";
12-
}
9+
public static string GetItemsById(IEnumerable<int> ids) => $"/api/v1/catalog/items?ids={string.Join(',', ids)}";
10+
}
1311

14-
public class BasketOperations
15-
{
16-
public static string GetItemById(string id) => $"/api/v1/basket/{id}";
12+
public class BasketOperations
13+
{
14+
public static string GetItemById(string id) => $"/api/v1/basket/{id}";
1715

18-
public static string UpdateBasket() => "/api/v1/basket";
19-
}
16+
public static string UpdateBasket() => "/api/v1/basket";
17+
}
2018

21-
public class OrdersOperations
22-
{
23-
public static string GetOrderDraft() => "/api/v1/orders/draft";
24-
}
19+
public class OrdersOperations
20+
{
21+
public static string GetOrderDraft() => "/api/v1/orders/draft";
22+
}
2523

26-
public string Basket { get; set; }
24+
public string Basket { get; set; }
2725

28-
public string Catalog { get; set; }
26+
public string Catalog { get; set; }
2927

30-
public string Orders { get; set; }
28+
public string Orders { get; set; }
3129

32-
public string GrpcBasket { get; set; }
30+
public string GrpcBasket { get; set; }
3331

34-
public string GrpcCatalog { get; set; }
32+
public string GrpcCatalog { get; set; }
3533

36-
public string GrpcOrdering { get; set; }
37-
}
34+
public string GrpcOrdering { get; set; }
3835
}

0 commit comments

Comments
 (0)