dotnet webapp template

This commit is contained in:
2026-09-08 18:07:26 +02:00
parent 2cd3aedb69
commit 0aa337fd4d
79 changed files with 82981 additions and 0 deletions

20
Pages/Error.cshtml.cs Normal file
View File

@@ -0,0 +1,20 @@
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace epson_printer.Pages;
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[IgnoreAntiforgeryToken]
public class ErrorModel : PageModel
{
public string? RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
public void OnGet()
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
}
}