mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-24 04:42:56 +01:00
18 lines
478 B
C#
18 lines
478 B
C#
using System.Diagnostics;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace Phantom.Server.Web.Layout;
|
|
|
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
|
[IgnoreAntiforgeryToken]
|
|
public class ErrorModel : PageModel {
|
|
public string? RequestId { get; set; }
|
|
|
|
public ErrorModel(ILogger<ErrorModel> logger) {}
|
|
|
|
public void OnGet() {
|
|
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
|
}
|
|
}
|