Skip to content

Commit 9dfa361

Browse files
committed
Add this keyword to fix some warnings
1 parent 05bf1f5 commit 9dfa361

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text-counter-razor/Pages/Error.cshtml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ public class ErrorModel : PageModel
1010
{
1111
public string? RequestId { get; set; }
1212

13-
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
13+
public bool ShowRequestId => !string.IsNullOrEmpty(this.RequestId);
1414

1515
private readonly ILogger<ErrorModel> _logger;
1616

1717
public ErrorModel(ILogger<ErrorModel> logger)
1818
{
19-
_logger = logger;
19+
this._logger = logger;
2020
}
2121

2222
public void OnGet()
2323
{
24-
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
24+
this.RequestId = Activity.Current?.Id ?? this.HttpContext.TraceIdentifier;
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)