main
Last change
on this file was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 2 months ago |
init commit Elena
|
-
Property mode
set to
100644
|
File size:
1.7 KB
|
Rev | Line | |
---|
[2aea0fd] | 1 | // Licensed to the .NET Foundation under one or more agreements.
|
---|
| 2 | // The .NET Foundation licenses this file to you under the MIT license.
|
---|
| 3 | #nullable disable
|
---|
| 4 |
|
---|
| 5 | using System.Diagnostics;
|
---|
| 6 | using Microsoft.AspNetCore.Authorization;
|
---|
| 7 | using Microsoft.AspNetCore.Mvc;
|
---|
| 8 | using Microsoft.AspNetCore.Mvc.RazorPages;
|
---|
| 9 |
|
---|
| 10 | namespace PostgreSqlDotnetCore.Areas.Identity.Pages
|
---|
| 11 | {
|
---|
| 12 | /// <summary>
|
---|
| 13 | /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
|
---|
| 14 | /// directly from your code. This API may change or be removed in future releases.
|
---|
| 15 | /// </summary>
|
---|
| 16 | [AllowAnonymous]
|
---|
| 17 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
---|
| 18 | public class ErrorModel : PageModel
|
---|
| 19 | {
|
---|
| 20 | /// <summary>
|
---|
| 21 | /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
|
---|
| 22 | /// directly from your code. This API may change or be removed in future releases.
|
---|
| 23 | /// </summary>
|
---|
| 24 | public string RequestId { get; set; }
|
---|
| 25 |
|
---|
| 26 | /// <summary>
|
---|
| 27 | /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
|
---|
| 28 | /// directly from your code. This API may change or be removed in future releases.
|
---|
| 29 | /// </summary>
|
---|
| 30 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
---|
| 31 |
|
---|
| 32 | /// <summary>
|
---|
| 33 | /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
|
---|
| 34 | /// directly from your code. This API may change or be removed in future releases.
|
---|
| 35 | /// </summary>
|
---|
| 36 | public void OnGet()
|
---|
| 37 | {
|
---|
| 38 | RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.