Skip to content

Commit 7183d90

Browse files
authored
Merge pull request #23888 from abpframework/auto-merge/rel-9-3/4022
Merge branch rel-10.0 with rel-9.3
2 parents 36bf7fd + f49de11 commit 7183d90

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

docs/en/tutorials/microservice/part-06.md

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ It opens the *Generate C# proxies* window. Select the `CloudCrm.CatalogService`
252252

253253
Proxy classes for the `IProductIntegrationService` interface have been generated.
254254

255-
### Adding Static HTTP Client Proxies
256-
257255
Lastly, open the `CloudCrmOrderingServiceModule` class (the `CloudCrmOrderingServiceModule.cs` file under the `CloudCrm.OrderingService` project of the `CloudCrm.OrderingService` .NET solution) and add the following code to the `ConfigureServices` method:
258256

259257
```csharp
@@ -262,31 +260,10 @@ public override void ConfigureServices(ServiceConfigurationContext context)
262260
// Other configurations...
263261
context.Services.AddStaticHttpClientProxies(
264262
typeof(CloudCrmCatalogServiceContractsModule).Assembly,
265-
"CatalogService"
266-
);
263+
"CatalogService");
267264
}
268-
```
269-
270-
Notice that `CatalogService` is the remote service name for the HTTP Client proxy.
271-
272-
### Note for the Kubernetes Deployment Configuration
273265

274-
ABP Studio automatically adds the base URL of the catalog service to the `appsettings.json` file of the `CloudCrm.OrderingService` project when you generate the C# client proxies:
275-
276-
````json
277-
"RemoteServices": {
278-
"CatalogService": {
279-
"BaseUrl": "http://localhost:..."
280-
}
281-
}
282-
````
283-
284-
If you will deploy your solution to Kubernetes, you should add that configuration to the `env` section of your `ordering` Helm chart's pod definition file (default location in the file system: `/etc/helm/cloudcrm/charts/ordering/templates/ordering.yaml`). Example configuration:
285-
286-
````yaml
287-
- name: "RemoteServices__CatalogService__BaseUrl"
288-
value: "http://{{ .Release.Name }}-catalog"
289-
````
266+
```
290267

291268
### Updating the UI to Display the Product Name
292269

0 commit comments

Comments
 (0)