зеркало из https://github.com/dotnet/tye.git
02a2a28ef6
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(); ``` |
||
---|---|---|
.. | ||
recipes | ||
reference | ||
tutorials/hello-tye | ||
FAQ.md | ||
README.md | ||
developer_guide.md | ||
getting_started.md |
README.md
📖 Tye documentation
Tutorials
Topic | Description |
---|---|
Getting Started | Get setup to develop with tye . |
Basic Tutorial (run locally) | Learn how to run an application locally with tye . |
Basic Tutorial (deploy) | Learn how to deploy an application with tye . |
Basic Tutorial (add Redis) | Learn how to add redis for development and deployed to a development cluster. |
Recipes
Topic | Description |
---|---|
Using Ingress | Using tye with an ingress for serving public traffic. |
Using Distributed Tracing | Using zipkin for distributed tracing. |
Logging with Elastic Stack | Using Elastic Stack for logging. |
Logging with Seq | Using Seq for logging. |
Using Dapr with Tye | Using tye for local development and deployment with a Dapr application. |
Using Azure Functions with Tye | Using tye for local development with Azure Functions |
AKS and Github Actions | Learn how to deploy an application to AKS with Github Actions |
Reference documentation
Area | Description |
---|---|
Tye Commandline Reference | Documentation for tye commands. |
Service Discovery | Learn more about service discovery in Tye. |
Local Development | Learn more about how Tye works for local development. |
Deployment | Learn more about how Tye works for deploying to Kubernetes. |
tye.yaml Schema |
tye.yaml configuration. |
Multiple Repository Scenarios | Learn how to configure a multiple repository application. |