diff options
| author | Sjory <Mgj32000@gmail.com> | 2024-12-05 13:23:12 +0100 |
|---|---|---|
| committer | Sjory <Mgj32000@gmail.com> | 2024-12-05 13:23:12 +0100 |
| commit | dae84a9660ed572dc150e548eb71ac38a0efbf6e (patch) | |
| tree | 285a1321c9cc0a403122449d81970729522930b7 /DrinksMachineWebsite/Pages/Error.cshtml.cs | |
| parent | ca3e50a78787685fb5a39c6f751a87b2beb65c17 (diff) | |
Updated to .Net v8.0
since there was almost no development made except a few test. i startet from scratch with .Net 8.0 and made a Blazor (Auot - Server/Web app)
Diffstat (limited to 'DrinksMachineWebsite/Pages/Error.cshtml.cs')
| -rw-r--r-- | DrinksMachineWebsite/Pages/Error.cshtml.cs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/DrinksMachineWebsite/Pages/Error.cshtml.cs b/DrinksMachineWebsite/Pages/Error.cshtml.cs deleted file mode 100644 index 0c7af17..0000000 --- a/DrinksMachineWebsite/Pages/Error.cshtml.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; -using System.Diagnostics; - -namespace DrinksMachineWebsite.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); - - private readonly ILogger<ErrorModel> _logger; - - public ErrorModel(ILogger<ErrorModel> logger) - { - _logger = logger; - } - - public void OnGet() - { - RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; - } - } -}
\ No newline at end of file |
