about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs')
-rw-r--r--MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs b/MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs
deleted file mode 100644

index 65d5751..0000000 --- a/MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs +++ /dev/null
@@ -1,19 +0,0 @@ -using System.Diagnostics; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace MatrixRoomUtils.Web.Server.Pages; - -[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] -[IgnoreAntiforgeryToken] -public class ErrorModel : PageModel { - private readonly ILogger<ErrorModel> _logger; - - public ErrorModel(ILogger<ErrorModel> logger) => _logger = logger; - - public string? RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - public void OnGet() => RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; -}