I removed two unneeded references from WeatherClient.cs
The instructions generate code in the new format, which results in only a `Program.cs` file needing the following code:
```
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddHttpClient<frontend.WeatherClient>(client =>
{
client.BaseAddress = builder.Configuration.GetServiceUri("backend");
});
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapRazorPages();
app.Run();
```
* Central build queue, w/ build from solution
* Fix some warnings
* Need to use -target and not -targets
Also needed to update msbuild version past 16.10 because of a bug that
meant that the default targets of projects couldn't be built.
* Remove unnecessary function
* Handle failures building solution better
* Styling updates.
* Scaffold explicit start/stop of builds.
* More styling updates.
* Cleanup working directory.
* Make build result more consistent.
* Tweak logging.
* Update formatting.
* Update more formatting.
* Add locks for critical areas.
* Update schema and reference doc.
* Fix formatting.
* Updates per PR feedback.
* More updates per PR feedback.
Co-authored-by: James Lloyd <james.lloyd@onlineseminar.nl>
Co-authored-by: phoff <phoff@microsoft.com>
* Add support for additional routes on the Dashboard
* Add deserialization unit tests
* Change routes from semicolon separated list to an array
* Use blocks for bindings.
Co-authored-by: Ante Marić <ante.maric@king-ict.hr>
Co-authored-by: phoff <phoff@microsoft.com>
* Set up tests for new dashboardPort functionality
* Add in new dashboardPort values to test data
* Map from tye.yaml configuration file into Application model
* Core change: apply DashboardPort from configuration (if cli --port argument is not specified)
* Add dashboardPort documentation to the tye schema page
* PR feedback: requested YAML (JSON) schema update
* reading named binding
Reading named binding took me quite some time to actually get it to working, I believe adding this line would help other readers save some time
* Update docs/reference/service_discovery.md
Co-authored-by: John Luo <johluo@microsoft.com>
CONNECTIONSTRING comes as CONNECTIONSTRINGS in the environment variable.
(Discovery during debugging tye run --debug (code is .NET 5.0.100) via System.Environment.GetEnvironmentVariable
CONNECTIONSTRING__POSTGRES -> CONNECTIONSTRINGS__POSTGRES