From 03313562d21d5db9bf6a14ebbeab80e06c883d3a Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 24 Jan 2024 02:31:56 +0100 Subject: MRU->RMU, fixes, cleanup --- MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs (limited to 'MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs') 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 _logger; - - public ErrorModel(ILogger logger) => _logger = logger; - - public string? RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - public void OnGet() => RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; -} -- cgit 1.4.1