Files
oliver.thy/RazorAppBoy/RazorAppBoy/Pages/Error.cshtml.cs
phosphenia a30638313c
Some checks failed
DMA-CSD-CICD/oliver.thy/pipeline/head There was a failure building this commit
hello
2026-04-07 12:10:21 +02:00

22 lines
550 B
C#

using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Diagnostics;
namespace RazorAppBoy.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;
}
}
}