wip
CICD-UCN/karsten.jeppesen/pipeline/head There was a failure building this commit

This commit is contained in:
Karsten Jeppesen
2026-09-29 07:38:12 +02:00
parent b3f1550794
commit 2ff459c147
82 changed files with 15 additions and 15 deletions
+21
View File
@@ -0,0 +1,21 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Diagnostics;
namespace Test0929a.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;
}
}
}