@ -65,24 +65,9 @@ This tutorial will demonstrate how to use [`tye run`](/docs/reference/commandlin
Now that we have two applications running, let's make them communicate. By default, `tye` enables service discovery by injecting environment variables with a specific naming convention. For more information on, see [service discovery](/docs/reference/service_discovery.md).
1. Add a NuGet.config to add the `dotnet-core` package source.
Paste the following into `nuget.config` in the `microservice/` directory.
6. Now register this client in `Startup.cs` class in `ConfigureServices` of the `frontend` project:
5. Now register this client in `Startup.cs` class in `ConfigureServices` of the `frontend` project:
```C#
public void ConfigureServices(IServiceCollection services)
@ -160,7 +145,7 @@ Now that we have two applications running, let's make them communicate. By defau
This will wire up the `WeatherClient` to use the correct URL for the `backend` service.
7. Add a `Forecasts` property to the `Index` page model under `Pages\Index.cshtml.cs` in the `frontend` project.
6. Add a `Forecasts` property to the `Index` page model under `Pages\Index.cshtml.cs` in the `frontend` project.
```C#
public WeatherForecast[] Forecasts { get; set; }
@ -175,7 +160,7 @@ Now that we have two applications running, let's make them communicate. By defau
}
```
8. Change the `Index.cshtml` razor view to render the `Forecasts` property in the razor page:
7. Change the `Index.cshtml` razor view to render the `Forecasts` property in the razor page:
```cshtml
@page
@ -214,7 +199,7 @@ Now that we have two applications running, let's make them communicate. By defau
</table>
```
9. Run the project with [`tye run`](/docs/reference/commandline/tye-run.md) and the `frontend` service should be able to successfully call the `backend` service!
8. Run the project with [`tye run`](/docs/reference/commandline/tye-run.md) and the `frontend` service should be able to successfully call the `backend` service!
When you visit the `frontend` service you should see a table of weather data. This data was produced randomly in the `backend` service. The fact that you're seeing it in a web UI in the `frontend` means that the services are able to communicate.