/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Components/WebAssembly/testassets/Wasm.Prerendered.Server/Startup.cs
42 строки
1 KB
Copilot
[Blazor] Deprecate UseWebAssemblyDebugging and remove it from Blazor templates (#67861)
17 июл 2026, 19:27
Не верифицирован
17 июл 2026, 19:27
1106030
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Wasm.Prerendered.Server; public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } public void ConfigureServices(IServiceCollection services) { services.AddRazorPages(); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); #pragma warning disable ASPDEPR011 // UseWebAssemblyDebugging is obsolete app.UseWebAssemblyDebugging(); #pragma warning restore ASPDEPR011 } app.UseHttpsRedirection(); app.UseBlazorFrameworkFiles(); app.UseStaticFiles(); app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapRazorPages(); endpoints.MapFallbackToFile("/_Host"); }); } }