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 | 41 ------------------------ MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs | 19 ----------- 2 files changed, 60 deletions(-) delete mode 100644 MatrixRoomUtils.Web.Server/Pages/Error.cshtml delete mode 100644 MatrixRoomUtils.Web.Server/Pages/Error.cshtml.cs (limited to 'MatrixRoomUtils.Web.Server/Pages') diff --git a/MatrixRoomUtils.Web.Server/Pages/Error.cshtml b/MatrixRoomUtils.Web.Server/Pages/Error.cshtml deleted file mode 100644 index 04b2c2a..0000000 --- a/MatrixRoomUtils.Web.Server/Pages/Error.cshtml +++ /dev/null @@ -1,41 +0,0 @@ -@page -@model MatrixRoomUtils.Web.Server.Pages.ErrorModel - - - - - - - - Error - - - - - -
-
-

Error.

-

An error occurred while processing your request.

- - @if (Model.ShowRequestId) { -

- Request ID: @Model.RequestId -

- } - -

Development Mode

-

- Swapping to the Development environment displays detailed information about the error that occurred. -

-

- The Development environment shouldn't be enabled for deployed applications. - It can result in displaying sensitive information from exceptions to end users. - For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development - and restarting the app. -

-
-
- - - \ No newline at end of file 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.5.1